Skip to content

Commit

Permalink
tree/arrange: Remove redundant output geometry update
Browse files Browse the repository at this point in the history
This is handled by apply_output_configs.
  • Loading branch information
kennylevinsen authored and Nefsen402 committed Sep 8, 2024
1 parent fc6b8d6 commit 4f9ce46
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sway/tree/arrange.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,6 @@ void arrange_output(struct sway_output *output) {
if (config->reloading) {
return;
}
struct wlr_box output_box;
wlr_output_layout_get_box(root->output_layout,
output->wlr_output, &output_box);
output->lx = output_box.x;
output->ly = output_box.y;
output->width = output_box.width;
output->height = output_box.height;

for (int i = 0; i < output->workspaces->length; ++i) {
struct sway_workspace *workspace = output->workspaces->items[i];
arrange_workspace(workspace);
Expand Down

0 comments on commit 4f9ce46

Please sign in to comment.