view: survive setting fullscreen with no outputs

Fixes #608
This commit is contained in:
Johan Malm 2022-11-12 16:13:20 +00:00 committed by Consolatis
parent 92a98164c3
commit f37a3ffa86

View file

@ -555,6 +555,9 @@ view_set_fullscreen(struct view *view, bool fullscreen,
/* Show fullscreen views above top-layer */
struct output *output =
output_from_wlr_output(view->server, wlr_output);
if (!output) {
return;
}
uint32_t top = ZWLR_LAYER_SHELL_V1_LAYER_TOP;
wlr_scene_node_set_enabled(&output->layer_tree[top]->node, !fullscreen);
}