]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: survive setting fullscreen with no outputs
authorJohan Malm <jgm323@gmail.com>
Sat, 12 Nov 2022 16:13:20 +0000 (16:13 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 15 Nov 2022 04:48:17 +0000 (05:48 +0100)
Fixes #608

src/view.c

index 9445282e0b129e8b31582843dbac9e926b7e5467..71de74cc347f39d04df3cf8a4f7083bc1926927f 100644 (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);
 }