summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Lozano <walter.lozano@collabora.com>2020-11-15 19:52:12 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-11-18 16:28:15 +0000
commit16ab9c3ba0e226f384e88be67a306c8cb7cf635b (patch)
tree658d5b36dd4891e0bead22d7f8bce1901c0400f8
parent7239ababba46f5ca3bddd0add65acd5777e832d8 (diff)
shell: Perform wl_list_init() after wl_list_remove()
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
-rw-r--r--src/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index 941257a..2ecf4c0 100644
--- 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;
}