aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 15:54:03 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-06 15:54:03 -0400
commitdf0d57b91660913659ba032fcb188b2d65e5c689 (patch)
tree4e3977c3fb499d92150d895cacb49f4d8dbdc7e1 /sway/tree
parent9109b1fd119c6fbe1c4b5de3b97d948b86f81ce0 (diff)
downloadsway-df0d57b91660913659ba032fcb188b2d65e5c689.tar.xz
Fix issue with incorrectly rejiggered workspaces
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/layout.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index a3bee883..5dbf4830 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -334,9 +334,12 @@ void container_move(struct sway_container *container,
}
case C_WORKSPACE:
if (!is_parallel(current->layout, move_dir)) {
- // Special case
- wlr_log(L_DEBUG, "Rejiggering the workspace");
- workspace_rejigger(current, container, move_dir);
+ if (current->children->length != 1) {
+ // Special case
+ wlr_log(L_DEBUG, "Rejiggering the workspace (%d kiddos)",
+ current->children->length);
+ workspace_rejigger(current, container, move_dir);
+ }
return;
} else {
wlr_log(L_DEBUG, "Selecting output");