summaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/layout.c')
-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");