cmd_split: flatten when possible

This commit is contained in:
Brian Ashworth 2018-12-05 21:46:02 -05:00
parent cf6edaf26a
commit 7b23a1a0d8
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ static struct cmd_results *do_split(int layout) {
workspace_split(ws, layout);
}
if (con->parent->parent) {
container_flatten(con->parent->parent);
}
arrange_workspace(ws);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);