mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
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:
parent
33b64667ae
commit
2478f2f010
2 changed files with 22 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue