diff options
-rw-r--r-- | sway/commands/move.c | 3 |
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( | |||
133 | } | 133 | } |
134 | container->width = container->height = 0; | 134 | container->width = container->height = 0; |
135 | container->width_fraction = container->height_fraction = 0; | 135 | container->width_fraction = container->height_fraction = 0; |
136 | workspace_squash(destination->workspace); | ||
136 | } | 137 | } |
137 | return; | 138 | return; |
138 | } | 139 | } |
@@ -145,6 +146,7 @@ static void container_move_to_container_from_direction( | |||
145 | container_insert_child(destination, container, index); | 146 | container_insert_child(destination, container, index); |
146 | container->width = container->height = 0; | 147 | container->width = container->height = 0; |
147 | container->width_fraction = container->height_fraction = 0; | 148 | container->width_fraction = container->height_fraction = 0; |
149 | workspace_squash(destination->workspace); | ||
148 | return; | 150 | return; |
149 | } | 151 | } |
150 | 152 | ||
@@ -396,6 +398,7 @@ static bool container_move_in_direction(struct sway_container *container, | |||
396 | if (old_parent) { | 398 | if (old_parent) { |
397 | container_reap_empty(old_parent); | 399 | container_reap_empty(old_parent); |
398 | } | 400 | } |
401 | workspace_squash(container->workspace); | ||
399 | return true; | 402 | return true; |
400 | } | 403 | } |
401 | } | 404 | } |