summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-06-07 18:17:42 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-06-07 18:17:42 -0400
commit9a050afc0611887cb6bc131427f2127d43833f9b (patch)
treee0623838bba31f85d9295d28356b4fd0b5ab89c2
parent633b14505c20ad2e6a6d96a6100664a45dfe2bd2 (diff)
compositor: Emit destroy signal when we manually destroy a weston_surface
-rw-r--r--src/compositor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c
index c6a5260..220fefb 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -718,6 +718,8 @@ weston_surface_destroy(struct weston_surface *surface)
/* Not a valid way to destroy a client surface */
assert(surface->surface.resource.client == NULL);
+ wl_signal_emit(&surface->surface.resource.destroy_signal,
+ &surface->surface.resource);
destroy_surface(&surface->surface.resource);
}