aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-03 21:06:13 -0400
committeremersion <contact@emersion.fr>2018-04-03 21:06:13 -0400
commitf3ef1da750d8da4b68869fa98fb8eceb8dda9858 (patch)
tree7e440e4ccdb5fdb11a802a029584979e42f73525 /sway/tree
parentdeb63eda8845167de9cea42d17ed1d8e219f2168 (diff)
downloadsway-f3ef1da750d8da4b68869fa98fb8eceb8dda9858.tar.xz
Fix wrong output container coordinates
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 4db93ce8..c686401c 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -160,8 +160,11 @@ struct sway_container *container_output_create(
return NULL;
}
- apply_output_config(oc, output);
+ // Insert the child before applying config so that the container coordinates
+ // get updated
container_add_child(&root_container, output);
+ apply_output_config(oc, output);
+
load_swaybars();
// Create workspace