aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootston/desktop.c5
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);
}