commit 89ffeaae495d02d37dbdcef12a48be7fb1cbb055
parent 432c4df6e71e32c486c830cba21a4ae0903f6647
Author: Ronan Pigott <rpigott@berkeley.edu>
Date: Tue, 10 Nov 2020 23:21:20 -0700
commands/move: reset geometry of promoted containers
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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);
}