]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layer-shell: only configure initialized layer surfaces
authoralex-huff <alexhuff@bakahuff.com>
Thu, 22 May 2025 20:22:05 +0000 (15:22 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 22 May 2025 21:35:03 +0000 (22:35 +0100)
Fixes #2736

src/layers.c

index 9b4dcdc802f0ac29e04841b38bea766933163f6f..ba756a527339dee1e1e88d3fbfa3fdeac6c17e7a 100644 (file)
@@ -46,6 +46,9 @@ arrange_one_layer(const struct wlr_box *full_area, struct wlr_box *usable_area,
        wl_list_for_each(node, &tree->children, link) {
                struct lab_layer_surface *surface = node_layer_surface_from_node(node);
                struct wlr_scene_layer_surface_v1 *scene = surface->scene_layer_surface;
+               if (!scene->layer_surface->initialized) {
+                       continue;
+               }
                if (!!scene->layer_surface->current.exclusive_zone != exclusive) {
                        continue;
                }