From: Walter Lozano Date: Sun, 15 Nov 2020 19:52:12 +0000 (+0000) Subject: shell: Perform wl_list_init() after wl_list_remove() X-Git-Tag: 10.91.0~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=16ab9c3ba0e226f384e88be67a306c8cb7cf635b;p=src%2Fagl-compositor.git 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 Change-Id: Ia5ea915a5ad55e8251e3bc86c87ddfc140bbe592 --- 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; }