Code Review
/
src
/
agl-compositor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7239aba
)
shell: Perform wl_list_init() after wl_list_remove()
76/25576/2
author
Walter Lozano
<walter.lozano@collabora.com>
Sun, 15 Nov 2020 19:52:12 +0000
(19:52 +0000)
committer
Jan-Simon Moeller
<jsmoeller@linuxfoundation.org>
Wed, 18 Nov 2020 16:28:15 +0000
(16:28 +0000)
In order to follow the best practices perform wl_list_init() after
wl_list_remove() on shell_ready.
Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Change-Id: Ia5ea915a5ad55e8251e3bc86c87ddfc140bbe592
src/shell.c
patch
|
blob
|
history
diff --git
a/src/shell.c
b/src/shell.c
index
941257a
..
2ecf4c0
100644
(file)
--- a/
src/shell.c
+++ b/
src/shell.c
@@
-746,6
+746,7
@@
shell_ready(struct wl_client *client, struct wl_resource *shell_res)
wl_list_for_each_safe(surface, tmp, &ivi->pending_surfaces, link) {
wl_list_remove(&surface->link);
+ wl_list_init(&surface->link);
ivi_check_pending_desktop_surface(surface);
surface->checked_pending = true;
}