mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 08:26:45 +01:00
Merge pull request #3260 from RedSoxFan/split-flatten
cmd_split: flatten when possible
This commit is contained in:
commit
0c3f0dfd16
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue