From 9a050afc0611887cb6bc131427f2127d43833f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 7 Jun 2012 18:17:42 -0400 Subject: [PATCH] compositor: Emit destroy signal when we manually destroy a weston_surface --- src/compositor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index c6a5260a..220fefb9 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); }