aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-12 09:17:06 +0100
committeremersion <contact@emersion.fr>2018-03-12 09:17:06 +0100
commit6ac3534df6ce1ac35932fb71584675d32507fed7 (patch)
tree3557c3a132b43d123db9d230ced6b60f64a94fb8 /rootston/desktop.c
parent1f8854f2172b124572f53976b9067fc4ef33a8a1 (diff)
rootston: add destroy to view interface
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);
}