From 2478f2f010bea58d4a7533d82f155a10ed04dd66 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Fri, 23 Oct 2020 12:00:45 -0700 Subject: 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. --- sway/commands/split.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sway/commands') diff --git a/sway/commands/split.c b/sway/commands/split.c index ec56c2f0..782bab02 100644 --- a/sway/commands/split.c +++ b/sway/commands/split.c @@ -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 { -- cgit v1.2.3