diff options
| author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-12-08 09:46:59 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-08 09:46:59 +1000 | 
| commit | 0c3f0dfd16b73f659c4eddd42ae9467bfc25a19c (patch) | |
| tree | 1f16b62edb920c0fda811203dc020450b8ba026e /sway/commands | |
| parent | cf6edaf26aa1461b89552727d2435d6fe9d0adf3 (diff) | |
| parent | 7b23a1a0d89a1dea7a1509efba0328ca6b822638 (diff) | |
| download | sway-0c3f0dfd16b73f659c4eddd42ae9467bfc25a19c.tar.xz | |
Merge pull request #3260 from RedSoxFan/split-flatten
cmd_split: flatten when possible
Diffstat (limited to 'sway/commands')
| -rw-r--r-- | sway/commands/split.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/sway/commands/split.c b/sway/commands/split.c index ed106a86..85a53a55 100644 --- 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); | 
