]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layers.c: set output->usable_area
authorJohan Malm <jgm323@gmail.com>
Sun, 20 Feb 2022 14:53:21 +0000 (14:53 +0000)
committerJohan Malm <jgm323@gmail.com>
Wed, 23 Feb 2022 21:47:01 +0000 (21:47 +0000)
src/layers.c

index 59e365b2c67961c3f112ff91b82447cd8108a1d0..94bf07ac023f91e70edac25f92ab776988b1d577 100644 (file)
@@ -39,16 +39,7 @@ arrange_layers(struct output *output)
                }
        }
 
-       for (int i = 0; i < 4; i++) {
-               struct wlr_scene_node *node = &output->layer_tree[i]->node;
-               wlr_scene_node_set_position(node,
-                       scene_output->x + usable_area.x,
-                       scene_output->y + usable_area.y);
-       }
-
-
-       /* TODO: workout how we set this */
-//     memcpy(&output->usable_area, &usable_area, sizeof(struct wlr_box));
+       memcpy(&output->usable_area, &usable_area, sizeof(struct wlr_box));
 
        /* Find topmost keyboard interactive layer, if such a layer exists */
        uint32_t layers_above_shell[] = {
@@ -77,6 +68,7 @@ arrange_layers(struct output *output)
                        !seat->focused_layer->current.keyboard_interactive) {
                seat_set_focus_layer(seat, NULL);
        }
+       /* FIXME: should we call a desktop_arrange_all_views() here? */
 }
 
 static void