summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorD.B <[email protected]>2016-10-10 20:44:09 +0200
committerD.B <[email protected]>2016-10-11 09:16:59 +0200
commit571321a1d84a1eb2867fbdc39f7f828aa2c64a01 (patch)
treead61090d261ccec47efc36b19f2b7266a01c1bdc /sway/layout.c
parent0ddc4279d1f4e6e161c36eae31fa32c950ad0c71 (diff)
add workspace_layout, ensure ws is always L_HORIZ
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type. Workspace being always L_HORIZ makes this much more i3-compatible.
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) {