diff options
author | emersion <contact@emersion.fr> | 2018-10-28 23:15:36 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-10-28 23:15:36 +0100 |
commit | 0c7371221c35a94e1fd7abf77f09dabd202d6c98 (patch) | |
tree | 26179dcaee9d0358cfe68ebae66a5480e921e2f4 | |
parent | 1454d1c8f872644374772266c3da136e923d50a4 (diff) |
rootston: fix segfault when destroying unmapped fullscreen views
-rw-r--r-- | rootston/desktop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 8cb9e0d5..7da64ef8 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -439,6 +439,11 @@ void view_destroy(struct roots_view *view) { view_unmap(view); } + // Can happen if fullscreened while unmapped, and hasn't been mapped + if (view->fullscreen_output != NULL) { + view->fullscreen_output->fullscreen_view = NULL; + } + if (view->destroy) { view->destroy(view); } |