From 125138f1a0448927c26c0f8a2761fed2df09b6ad Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 13 Mar 2018 12:34:29 +0100 Subject: rootston: unmap view after emitting destroy signal in view_destroy --- rootston/desktop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootston') 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); } -- cgit v1.2.3