aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 278f4fea..19b7768c 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -422,6 +422,10 @@ void view_destroy(struct roots_view *view) {
wl_signal_emit(&view->events.destroy, view);
+ if (view->destroy) {
+ view->destroy(view);
+ }
+
free(view);
}