rootston: fix segfault when destroying unmapped fullscreen views
This commit is contained in:
parent
1454d1c8f8
commit
0c7371221c
|
@ -439,6 +439,11 @@ void view_destroy(struct roots_view *view) {
|
||||||
view_unmap(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) {
|
if (view->destroy) {
|
||||||
view->destroy(view);
|
view->destroy(view);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue