container: don't split single children

In i3 splits are ineffective on singleton H/V containers,
and the command is interpreted to affect the parent layout
instead.
This commit is contained in:
Ronan Pigott 2020-10-23 12:00:45 -07:00 committed by Tudor Brindus
parent 33b64667ae
commit 2478f2f010
2 changed files with 22 additions and 4 deletions

View file

@ -23,10 +23,6 @@ static struct cmd_results *do_split(int layout) {
workspace_split(ws, layout);
}
if (con && con->parent && con->parent->parent) {
container_flatten(con->parent->parent);
}
if (root->fullscreen_global) {
arrange_root();
} else {