From 1057424f840c8b962b861568d7ccee07dcaadbaa Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Tue, 30 Jul 2024 16:43:25 +0900 Subject: [PATCH] e_comp_wl_subsurface: Execute view listener restack del when destroy Don't have to check ec is correct. Because this callback call when ec destroying, not destoryed yet. Change-Id: I306903c0ca569e2ab59cca2b3c5231e6a898098d --- src/bin/server/e_comp_wl_subsurface.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/server/e_comp_wl_subsurface.c b/src/bin/server/e_comp_wl_subsurface.c index 859bd6f..aa770d7 100644 --- a/src/bin/server/e_comp_wl_subsurface.c +++ b/src/bin/server/e_comp_wl_subsurface.c @@ -454,14 +454,16 @@ _view_client_restack_cb_destroy(struct wl_listener *listener, void *data) { View_Client_Restack_Data *restack_data; E_View *view; + E_View_Client *view_client; restack_data = wl_container_of(listener, restack_data, destroy); wl_list_remove(&restack_data->destroy.link); - if (!e_object_is_del(E_OBJECT(restack_data->ec))) + view_client = e_client_view_get(restack_data->ec); + if (view_client) { - view = e_view_client_view_get(e_client_view_get(restack_data->ec)); + view = e_view_client_view_get(view_client); e_view_event_listener_del(view, E_VIEW_RESTACK, &restack_data->view_restack); } -- 2.7.4