summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-09-11 16:45:42 +0100
committerFurkan Sahin <furkan-dev@proton.me>2018-09-11 16:45:42 +0100
commited9d09a8dd4d6de60cd6b15e8d8a63fc57c6fc58 (patch)
tree4fc5733e87ce34d6f2e1a5953bc2738914785506
parent0cf14c65b527ad1906b5dc44afbf7e29fc792a8f (diff)
commands: when moving container, remove its gaps
-rw-r--r--sway/commands/move.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 3c8f1dcf..00bd8acd 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -231,6 +231,7 @@ static void container_move_to_container(struct sway_container *container,
struct sway_workspace *old_workspace = container->workspace;
container_detach(container);
+ container_remove_gaps(container);
container->width = container->height = 0;
container->saved_width = container->saved_height = 0;