aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-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