aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 21:33:59 -0400
committerGitHub <noreply@github.com>2018-04-03 21:33:59 -0400
commit7e2b0d731ba452a12e101f3b4c63086074ef345a (patch)
tree7e440e4ccdb5fdb11a802a029584979e42f73525 /sway/tree
parentdeb63eda8845167de9cea42d17ed1d8e219f2168 (diff)
parentf3ef1da750d8da4b68869fa98fb8eceb8dda9858 (diff)
Merge pull request #1721 from emersion/fix-output-container-coords
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