diff options
author | Walter Lozano <walter.lozano@collabora.com> | 2020-11-15 19:52:12 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-11-18 16:28:15 +0000 |
commit | 16ab9c3ba0e226f384e88be67a306c8cb7cf635b (patch) | |
tree | 658d5b36dd4891e0bead22d7f8bce1901c0400f8 | |
parent | 7239ababba46f5ca3bddd0add65acd5777e832d8 (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.c | 1 |
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; } |