summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 4f2ea09a..a57306e0 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -302,7 +302,8 @@ void move_container(swayc_t *container, enum movement_direction dir) {
}
// Change parent layout if we need to
if (parent->children->length == 1 && parent->layout != layout) {
- parent->layout = layout;
+ swayc_change_layout(parent, layout);
+ /* parent->layout = layout; */
continue;
}
if (parent->type == C_WORKSPACE) {