aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/move.c
diff options
context:
space:
mode:
authorRonan Pigott <rpigott@berkeley.edu>2020-11-10 23:19:18 -0700
committerTudor Brindus <me@tbrindus.ca>2020-12-20 00:58:42 -0500
commit432c4df6e71e32c486c830cba21a4ae0903f6647 (patch)
treebf9fa4243163f329455ca50dbc78ab67f11e72ad /sway/commands/move.c
parent8eb0c54693e44e7c6126ce35045e34ad0f4d4607 (diff)
commands/move: squash workspace after directional con move
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index ecad9863..1c90f30d 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -133,6 +133,7 @@ static void container_move_to_container_from_direction(
}
container->width = container->height = 0;
container->width_fraction = container->height_fraction = 0;
+ workspace_squash(destination->workspace);
}
return;
}
@@ -145,6 +146,7 @@ static void container_move_to_container_from_direction(
container_insert_child(destination, container, index);
container->width = container->height = 0;
container->width_fraction = container->height_fraction = 0;
+ workspace_squash(destination->workspace);
return;
}
@@ -396,6 +398,7 @@ static bool container_move_in_direction(struct sway_container *container,
if (old_parent) {
container_reap_empty(old_parent);
}
+ workspace_squash(container->workspace);
return true;
}
}