aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/commands/move.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 1c90f30d..7a7e858e 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -395,6 +395,8 @@ static bool container_move_in_direction(struct sway_container *container,
workspace_insert_tiling(ancestor->workspace, container,
index + (offs < 0 ? 0 : 1));
}
+ ancestor->height = ancestor->width = 0;
+ ancestor->height_fraction = ancestor->width_fraction = 0;
if (old_parent) {
container_reap_empty(old_parent);
}