diff options
author | Drew DeVault <[email protected]> | 2016-10-11 08:24:38 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2016-10-11 08:24:38 -0400 |
commit | ce713efcd23b82a7d85c1976ddfbd46f08133ff6 (patch) | |
tree | c7e0986aa282c00bcc12cde70820ffbca07cb6b5 /sway/commands/split.c | |
parent | 9ad6fc592dd6bd5bf29e60b03186bba32f5c9fa3 (diff) | |
parent | 166c2a3687d2819184457490132dd0c109238873 (diff) |
Merge pull request #945 from thejan2009/workspace_layout
Fixes dealing with workspace_layout and related bugs [rfc]
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r-- | sway/commands/split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c index 9ff1d638..f3e58fbf 100644 --- a/sway/commands/split.c +++ b/sway/commands/split.c @@ -25,11 +25,11 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) { /* Case that focus is on an workspace with 0/1 children.change its layout */ if (focused->type == C_WORKSPACE && focused->children->length <= 1) { sway_log(L_DEBUG, "changing workspace layout"); - focused->layout = layout; + swayc_change_layout(focused, layout); } else if (focused->type != C_WORKSPACE && focused->parent->children->length == 1) { /* Case of no siblings. change parent layout */ sway_log(L_DEBUG, "changing container layout"); - focused->parent->layout = layout; + swayc_change_layout(focused->parent, layout); } else { /* regular case where new split container is build around focused container * or in case of workspace, container inherits its children */ |