[PATCH weston 4/4] libweston-desktop/xdg-shell-v5: initialize configure list

Arnaud Vrac rawoul at gmail.com
Sat Aug 5 11:59:01 UTC 2017


Without this weston crashes when a client using xdg-shell-v5 is run.

Signed-off-by: Arnaud Vrac <rawoul at gmail.com>
---
 libweston-desktop/xdg-shell-v5.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libweston-desktop/xdg-shell-v5.c b/libweston-desktop/xdg-shell-v5.c
index dd360862..ebe7940e 100644
--- a/libweston-desktop/xdg-shell-v5.c
+++ b/libweston-desktop/xdg-shell-v5.c
@@ -745,6 +745,8 @@ weston_desktop_xdg_shell_protocol_get_xdg_surface(struct wl_client *wl_client,
 		wl_event_loop_add_idle(loop,
 				       weston_desktop_xdg_surface_add_idle_callback,
 				       surface);
+
+	wl_list_init(&surface->configure_list);
 }
 
 static void
-- 
2.13.0



More information about the wayland-devel mailing list