assert(surface->resource == NULL);
- wl_signal_emit(&surface->destroy_signal, &surface->resource);
+ wl_signal_emit(&surface->destroy_signal, surface);
assert(wl_list_empty(&surface->subsurface_list_pending));
assert(wl_list_empty(&surface->subsurface_list));
struct weston_subsurface *sub =
container_of(listener, struct weston_subsurface,
surface_destroy_listener);
- assert(data == &sub->surface->resource);
+ assert(data == sub->surface);
/* The protocol object (wl_resource) is left inert. */
if (sub->resource)
struct weston_subsurface *sub =
container_of(listener, struct weston_subsurface,
parent_destroy_listener);
- assert(data == &sub->parent->resource);
+ assert(data == sub->parent);
assert(sub->surface != sub->parent);
if (weston_surface_is_mapped(sub->surface))
struct weston_surface {
struct wl_resource *resource;
- struct wl_signal destroy_signal;
+ struct wl_signal destroy_signal; /* callback argument: this surface */
struct weston_compositor *compositor;
/** Damage in local coordinates from the client, for tex upload. */