aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2020-10-23 12:00:45 -0700
committerLibravatar Tudor Brindus <me@tbrindus.ca>2020-12-20 00:58:42 -0500
commit2478f2f010bea58d4a7533d82f155a10ed04dd66 (patch)
tree6b8e0c5ed967fd6581b853addfc032ff55370e9d /sway/commands
parentTest output before direct scan-out (diff)
downloadsway-2478f2f010bea58d4a7533d82f155a10ed04dd66.tar.gz
sway-2478f2f010bea58d4a7533d82f155a10ed04dd66.tar.zst
sway-2478f2f010bea58d4a7533d82f155a10ed04dd66.zip
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.
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/split.c4
1 files changed, 0 insertions, 4 deletions
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) {
23 workspace_split(ws, layout); 23 workspace_split(ws, layout);
24 } 24 }
25 25
26 if (con && con->parent && con->parent->parent) {
27 container_flatten(con->parent->parent);
28 }
29
30 if (root->fullscreen_global) { 26 if (root->fullscreen_global) {
31 arrange_root(); 27 arrange_root();
32 } else { 28 } else {