e_compositor: Use destroy signal of E_Surface 62/319162/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 17 Jan 2025 01:49:35 +0000 (10:49 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 5 Feb 2025 01:00:14 +0000 (10:00 +0900)
Instead of using destroy signal of E_Comp_Wl_Client_Data, this patch
uses destroy signal of E_Surface becasue E_Subsurface should depend on
E_Surface, not E_Comp_Wl_Client_Data.

Change-Id: I155030f2afacdcb034b921d24bfe349af234dfbe

src/bin/server/e_compositor.c

index d396297ac27cde8cbf5f16c8b81519a586af11ba..cb45bc24679813860327db84f86b01cd7aee9929 100644 (file)
@@ -1564,11 +1564,11 @@ _e_subsurface_create(struct ds_subsurface *ds_subsurface, E_Surface *parent_surf
 
    sub->surface = surface;
    sub->surface_destroy.notify = _e_subsurface_cb_surface_destroy;
-   wl_signal_add(&surface->base.destroy_signal, &sub->surface_destroy);
+   wl_signal_add(&surface->events.destroy, &sub->surface_destroy);
 
    sub->parent = parent_surface;
    sub->parent_surface_destroy.notify = _e_subsurface_cb_parent_surface_destroy;
-   wl_signal_add(&parent_surface->base.destroy_signal, &sub->parent_surface_destroy);
+   wl_signal_add(&parent_surface->events.destroy, &sub->parent_surface_destroy);
 
    e_comp_wl_subsurface_data_init(&sub->base, surface->ec, epc, offscreen_parent);