From: Johan Malm Date: Mon, 16 Oct 2023 20:27:12 +0000 (+0100) Subject: layers: remove redundant function argument X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=cf72d01f0c940c146b0e3ed39fc49cadd136e859;p=proto%2Flabwc.git layers: remove redundant function argument --- diff --git a/src/layers.c b/src/layers.c index b6ae4bb0..f812a016 100644 --- a/src/layers.c +++ b/src/layers.c @@ -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,