aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2020-11-10 23:19:18 -0700
committerLibravatar Tudor Brindus <me@tbrindus.ca>2020-12-20 00:58:42 -0500
commit432c4df6e71e32c486c830cba21a4ae0903f6647 (patch)
treebf9fa4243163f329455ca50dbc78ab67f11e72ad
parentintroduce workspace_squash (diff)
downloadsway-432c4df6e71e32c486c830cba21a4ae0903f6647.tar.gz
sway-432c4df6e71e32c486c830cba21a4ae0903f6647.tar.zst
sway-432c4df6e71e32c486c830cba21a4ae0903f6647.zip
commands/move: squash workspace after directional con move
-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(
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}