mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
cmd_split: flatten when possible
This commit is contained in:
parent
cf6edaf26a
commit
7b23a1a0d8
|
@ -18,6 +18,10 @@ static struct cmd_results *do_split(int layout) {
|
||||||
workspace_split(ws, layout);
|
workspace_split(ws, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (con->parent->parent) {
|
||||||
|
container_flatten(con->parent->parent);
|
||||||
|
}
|
||||||
|
|
||||||
arrange_workspace(ws);
|
arrange_workspace(ws);
|
||||||
|
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
|
|
Loading…
Reference in a new issue