aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2020-11-10 23:21:20 -0700
committerLibravatar Tudor Brindus <me@tbrindus.ca>2020-12-20 00:58:42 -0500
commit89ffeaae495d02d37dbdcef12a48be7fb1cbb055 (patch)
tree160de6dbf4813f989a8b543774469032768f19c2
parentcommands/move: squash workspace after directional con move (diff)
downloadsway-89ffeaae495d02d37dbdcef12a48be7fb1cbb055.tar.gz
sway-89ffeaae495d02d37dbdcef12a48be7fb1cbb055.tar.zst
sway-89ffeaae495d02d37dbdcef12a48be7fb1cbb055.zip
commands/move: reset geometry of promoted containers
-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,
395 workspace_insert_tiling(ancestor->workspace, container, 395 workspace_insert_tiling(ancestor->workspace, container,
396 index + (offs < 0 ? 0 : 1)); 396 index + (offs < 0 ? 0 : 1));
397 } 397 }
398 ancestor->height = ancestor->width = 0;
399 ancestor->height_fraction = ancestor->width_fraction = 0;
398 if (old_parent) { 400 if (old_parent) {
399 container_reap_empty(old_parent); 401 container_reap_empty(old_parent);
400 } 402 }