compositor: Fix crash from uninitialized wl_list(comp_data->pointer_constraints) 19/296519/1
authorduna.oh <duna.oh@samsung.com>
Mon, 31 Jul 2023 05:57:51 +0000 (14:57 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 31 Jul 2023 06:13:52 +0000 (15:13 +0900)
This call of wl_list_init is omitted when applying the commit '406e1d'.

Change-Id: I78cbc86e6b8eebf650717fbd4427bb1b2df33fcd

src/bin/e_compositor.c

index 9404387..391dc97 100644 (file)
@@ -345,6 +345,7 @@ _e_compositor_cb_new_surface(struct wl_listener *listener, void *data)
           ec->client.w = ec->client.h = 1;
         ec->comp_data->surface = surface_resource;
         ec->icccm.accepts_focus = 1;
+        wl_list_init(&ec->comp_data->pointer_constraints);
 
         _e_surface_ds_surface_set(_e_surface_from_comp_data(ec->comp_data),
                                   ds_surface);