diff options
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r-- | sway/commands/split.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c index ed106a86..84385fa9 100644 --- a/sway/commands/split.c +++ b/sway/commands/split.c @@ -18,6 +18,10 @@ static struct cmd_results *do_split(int layout) { workspace_split(ws, layout); } + if (con && con->parent && con->parent->parent) { + container_flatten(con->parent->parent); + } + arrange_workspace(ws); return cmd_results_new(CMD_SUCCESS, NULL, NULL); |