It replaces the use of the destroy signal from the surface wl_resource
with E_Surface's destroy signal. Since E_Surface acts as a wrapper
around surface wl_resource, it makes more sense to utilize its signals
instead.
Change-Id: I4ffa0da4b9583d9065902e3b9f4590598d87aa54
return EINA_FALSE;
}
- struct wl_resource *comp_surface = e_comp_wl_client_surface_get(ec);
- if (!comp_surface)
- {
- ERR("wrong resource");
- return EINA_FALSE;
- }
-
surface = e_surface_from_resource(surface_resource);
if (!surface)
{
viewport, _e_comp_wl_viewport_destroy);
viewport->surface_destroy_listener.notify = _e_comp_wl_viewport_cb_surface_destroy;
- wl_resource_add_destroy_listener(comp_surface, &viewport->surface_destroy_listener);
+ e_surface_destroy_listener_add(viewport->surface, &viewport->surface_destroy_listener);
PIN("create viewport");