Fix issue with incorrectly rejiggered workspaces

This commit is contained in:
Drew DeVault 2018-04-06 15:54:03 -04:00
parent 9109b1fd11
commit df0d57b916
2 changed files with 15 additions and 6 deletions

View file

@ -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");