diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-09-11 16:45:42 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-09-11 16:46:11 +0100 |
commit | ae535396b026da4cda1a2dcfb1658184a70396d5 (patch) | |
tree | 4fc5733e87ce34d6f2e1a5953bc2738914785506 | |
parent | commands: when moving container, restore focus properly (diff) | |
download | sway-ae535396b026da4cda1a2dcfb1658184a70396d5.tar.gz sway-ae535396b026da4cda1a2dcfb1658184a70396d5.tar.zst sway-ae535396b026da4cda1a2dcfb1658184a70396d5.zip |
commands: when moving container, remove its gaps
-rw-r--r-- | sway/commands/move.c | 1 |
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, | |||
231 | struct sway_workspace *old_workspace = container->workspace; | 231 | struct sway_workspace *old_workspace = container->workspace; |
232 | 232 | ||
233 | container_detach(container); | 233 | container_detach(container); |
234 | container_remove_gaps(container); | ||
234 | container->width = container->height = 0; | 235 | container->width = container->height = 0; |
235 | container->saved_width = container->saved_height = 0; | 236 | container->saved_width = container->saved_height = 0; |
236 | 237 | ||