aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 15:54:03 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 15:54:03 -0400
commitdf0d57b91660913659ba032fcb188b2d65e5c689 (patch)
tree4e3977c3fb499d92150d895cacb49f4d8dbdc7e1 /sway/tree
parentFix moving to parallel container on another output (diff)
downloadsway-df0d57b91660913659ba032fcb188b2d65e5c689.tar.gz
sway-df0d57b91660913659ba032fcb188b2d65e5c689.tar.zst
sway-df0d57b91660913659ba032fcb188b2d65e5c689.zip
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,
334 } 334 }
335 case C_WORKSPACE: 335 case C_WORKSPACE:
336 if (!is_parallel(current->layout, move_dir)) { 336 if (!is_parallel(current->layout, move_dir)) {
337 // Special case 337 if (current->children->length != 1) {
338 wlr_log(L_DEBUG, "Rejiggering the workspace"); 338 // Special case
339 workspace_rejigger(current, container, move_dir); 339 wlr_log(L_DEBUG, "Rejiggering the workspace (%d kiddos)",
340 current->children->length);
341 workspace_rejigger(current, container, move_dir);
342 }
340 return; 343 return;
341 } else { 344 } else {
342 wlr_log(L_DEBUG, "Selecting output"); 345 wlr_log(L_DEBUG, "Selecting output");