e_policy_desk: remove desk listeners when delete policy desk 96/325196/1
authorJunseok Kim <juns.kim@samsung.com>
Wed, 28 May 2025 07:22:53 +0000 (16:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 4 Jun 2025 06:55:56 +0000 (15:55 +0900)
Change-Id: I863f5307f4f9604aca6cc0577e3e8533e8ae8afb

src/bin/windowmgr/e_policy_desk.c

index 07231cb7082818746c6b55f79f01a540af2fa183..d3c4e18437fa9da73669a2c60beb2907abdd271c 100644 (file)
@@ -2080,6 +2080,35 @@ e_policy_desk_del(E_Policy_Desk *pd)
    E_Client *ec;
    Eina_Iterator *it;
 
+   // desk listeners
+   wl_list_remove(&pd->desk_free.link);
+   wl_list_remove(&pd->name_set.link);
+   wl_list_remove(&pd->desk_show.link);
+   wl_list_remove(&pd->desk_client_add.link);
+   wl_list_remove(&pd->desk_client_del.link);
+   wl_list_remove(&pd->desk_has_ec.link);
+   wl_list_remove(&pd->geometry_set.link);
+   wl_list_remove(&pd->zoom_set.link);
+   wl_list_remove(&pd->zoom_get.link);
+   wl_list_remove(&pd->zoom_get_center_coordinate.link);
+   wl_list_remove(&pd->zoom_unset.link);
+   wl_list_remove(&pd->smart_member_add.link);
+   wl_list_remove(&pd->smart_member_del.link);
+   wl_list_remove(&pd->client_zoom_skip_set.link);
+   wl_list_remove(&pd->client_zoom_skip_unset.link);
+   wl_list_remove(&pd->client_zoom_apply.link);
+   wl_list_remove(&pd->zoom_is_animating.link);
+   wl_list_remove(&pd->visible_client_iconify_all.link);
+   wl_list_remove(&pd->visible_client_restore_all.link);
+   wl_list_remove(&pd->client_iconified_list_remove.link);
+   wl_list_remove(&pd->client_iconified_list_remove_all.link);
+   wl_list_remove(&pd->client_top_get.link);
+   wl_list_remove(&pd->client_bottom_get.link);
+   wl_list_remove(&pd->client_above_get.link);
+   wl_list_remove(&pd->client_below_get.link);
+   wl_list_remove(&pd->client_visible_above_get.link);
+   wl_list_remove(&pd->client_visible_below_get.link);
+
    /* remove clients */
    E_DESK_CLIENT_FOREACH(pd->desk, ec)
      {