From f37a3ffa8653144d2215a9469ed615b4f31a4123 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sat, 12 Nov 2022 16:13:20 +0000 Subject: [PATCH] view: survive setting fullscreen with no outputs Fixes #608 --- src/view.c | 3 +++ 1 file changed, 3 insertions(+) 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); }