sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 7b23a1a0d89a1dea7a1509efba0328ca6b822638
parent cf6edaf26aa1461b89552727d2435d6fe9d0adf3
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Wed,  5 Dec 2018 21:46:02 -0500

cmd_split: flatten when possible

Diffstat:
Msway/commands/split.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sway/commands/split.c b/sway/commands/split.c @@ -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);