]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layers: remove redundant function argument
authorJohan Malm <jgm323@gmail.com>
Mon, 16 Oct 2023 20:27:12 +0000 (21:27 +0100)
committerJohn Lindgren <john@jlindgren.net>
Mon, 16 Oct 2023 21:10:09 +0000 (17:10 -0400)
src/layers.c

index b6ae4bb0e9afe30208b5051222b43cf97eab68d3..f812a016f171e3abe78c37866cd9db0bad464997 100644 (file)
@@ -38,9 +38,8 @@ apply_override(struct output *output, struct wlr_box *usable_area)
 }
 
 static void
-arrange_one_layer(struct output *output, const struct wlr_box *full_area,
-               struct wlr_box *usable_area, struct wlr_scene_tree *tree,
-               bool exclusive)
+arrange_one_layer(const struct wlr_box *full_area, struct wlr_box *usable_area,
+               struct wlr_scene_tree *tree, bool exclusive)
 {
        struct wlr_scene_node *node;
        wl_list_for_each(node, &tree->children, link) {
@@ -85,8 +84,8 @@ layers_arrange(struct output *output)
                 * clients, so that the latter give way to the former regardless
                 * of the order in which they were launched.
                 */
-               arrange_one_layer(output, &full_area, &usable_area, layer, true);
-               arrange_one_layer(output, &full_area, &usable_area, layer, false);
+               arrange_one_layer(&full_area, &usable_area, layer, true);
+               arrange_one_layer(&full_area, &usable_area, layer, false);
 
                /* Set node position to account for output layout change */
                wlr_scene_node_set_position(&layer->node, scene_output->x,