diff options
author | emersion <contact@emersion.fr> | 2018-03-13 12:34:29 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-13 12:34:29 +0100 |
commit | 125138f1a0448927c26c0f8a2761fed2df09b6ad (patch) | |
tree | 2459cd547134026e7e18e79bede3dc5a933463d6 | |
parent | c1c88bfe5d88b7f6330f5ce5be04ef6951123c3d (diff) |
rootston: unmap view after emitting destroy signal in view_destroy
-rw-r--r-- | rootston/desktop.c | 4 |
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); } |