From: Johan Malm Date: Sat, 12 Nov 2022 16:13:20 +0000 (+0000) Subject: view: survive setting fullscreen with no outputs X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=f37a3ffa8653144d2215a9469ed615b4f31a4123;p=proto%2Flabwc.git view: survive setting fullscreen with no outputs Fixes #608 --- diff --git a/src/view.c b/src/view.c index 9445282e..71de74cc 100644 --- a/src/view.c +++ b/src/view.c @@ -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); }