aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootston/desktop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index afe2c221..b1e6f874 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -417,12 +417,12 @@ void view_destroy(struct roots_view *view) {
return;
}
+ wl_signal_emit(&view->events.destroy, view);
+
if (view->wlr_surface != NULL) {
view_unmap(view);
}
- wl_signal_emit(&view->events.destroy, view);
-
if (view->destroy) {
view->destroy(view);
}