From: Junkyeong Kim Date: Thu, 21 Nov 2024 05:12:11 +0000 (+0900) Subject: e_alpha_mask_rect: Change view event listener delete method X-Git-Tag: accepted/tizen/unified/20241122.171543~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10ca187f66479e83fee27a516728e4cc56e9d26c;p=platform%2Fupstream%2Fenlightenment.git e_alpha_mask_rect: Change view event listener delete method Use view event delete API instead of wl_list_remove. Change-Id: Ie9bb580e1f0f45515a78f64e207fd6b101657785 --- diff --git a/src/bin/compmgr/e_alpha_mask_rect.c b/src/bin/compmgr/e_alpha_mask_rect.c index 419626f76a..10a55d1ba2 100644 --- a/src/bin/compmgr/e_alpha_mask_rect.c +++ b/src/bin/compmgr/e_alpha_mask_rect.c @@ -158,14 +158,18 @@ _e_alpha_mask_rect_try_from_ec(E_Client *ec) static void _e_alpha_mask_rect_destroy(E_Alpha_Mask_Rect *rect) { + E_View *view; + ELOGF("ALPHA_MASK", "Destroy E_Alpha_Mask_Rect(%p)", rect->ec, rect); + view = e_view_rect_view_get(rect->view); + e_comp_wl_hook_del(rect->subsurface_create_hook); evas_object_smart_callback_del(rect->ec->frame, "client_resize", _e_alpha_mask_rect_cb_client_resize); - wl_list_remove(&rect->show.link); - wl_list_remove(&rect->hide.link); - wl_list_remove(&rect->reposition.link); - wl_list_remove(&rect->resize.link); + e_view_event_listener_del(view, E_VIEW_SHOW, &rect->show); + e_view_event_listener_del(view, E_VIEW_HIDE, &rect->hide); + e_view_event_listener_del(view, E_VIEW_MOVE, &rect->reposition); + e_view_event_listener_del(view, E_VIEW_RESIZE, &rect->resize); wl_list_remove(&rect->transform_change.link); wl_list_remove(&rect->destroy.link); e_view_destroy(e_view_rect_view_get(rect->view));