aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/split.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-05 21:46:02 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-05 21:46:02 -0500
commit7b23a1a0d89a1dea7a1509efba0328ca6b822638 (patch)
tree1f16b62edb920c0fda811203dc020450b8ba026e /sway/commands/split.c
parentFix command list execution (diff)
downloadsway-7b23a1a0d89a1dea7a1509efba0328ca6b822638.tar.gz
sway-7b23a1a0d89a1dea7a1509efba0328ca6b822638.tar.zst
sway-7b23a1a0d89a1dea7a1509efba0328ca6b822638.zip
cmd_split: flatten when possible
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r--sway/commands/split.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c
index ed106a86..85a53a55 100644
--- a/sway/commands/split.c
+++ b/sway/commands/split.c
@@ -18,6 +18,10 @@ static struct cmd_results *do_split(int layout) {
18 workspace_split(ws, layout); 18 workspace_split(ws, layout);
19 } 19 }
20 20
21 if (con->parent->parent) {
22 container_flatten(con->parent->parent);
23 }
24
21 arrange_workspace(ws); 25 arrange_workspace(ws);
22 26
23 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 27 return cmd_results_new(CMD_SUCCESS, NULL, NULL);