mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-26 19:39:49 +01:00
rootston: fix segfault when destroying unmapped fullscreen views
This commit is contained in:
parent
1454d1c8f8
commit
0c7371221c
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue