summaryrefslogtreecommitdiffstats
path: root/src/desktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.c')
-rw-r--r--src/desktop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop.c b/src/desktop.c
index 28ef52b..bc1e33f 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -449,8 +449,10 @@ ivi_shell_destroy(struct wl_listener *listener, void *data)
struct ivi_compositor *ivi = container_of(listener,
struct ivi_compositor, destroy_listener);
- weston_desktop_destroy(ivi->desktop);
+ ivi_shell_finalize(ivi);
ivi_compositor_destroy_pending_surfaces(ivi);
+
+ weston_desktop_destroy(ivi->desktop);
wl_list_remove(&listener->link);
}