diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-09 23:07:32 +1000 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-09 11:22:23 -0500 |
commit | 14cab7861294189f820e0830ae84ac7b15271342 (patch) | |
tree | bfae92f11af7948576312c30b226dd8ddbafdd66 | |
parent | Merge pull request #3391 from jbeich/freebsd (diff) | |
download | sway-14cab7861294189f820e0830ae84ac7b15271342.tar.gz sway-14cab7861294189f820e0830ae84ac7b15271342.tar.zst sway-14cab7861294189f820e0830ae84ac7b15271342.zip |
Reset container dimensions when moving into workspace from direction
-rw-r--r-- | sway/commands/move.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index 09f19c3f..72e177e8 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -154,6 +154,8 @@ static void container_move_to_container_from_direction( | |||
154 | static void container_move_to_workspace_from_direction( | 154 | static void container_move_to_workspace_from_direction( |
155 | struct sway_container *container, struct sway_workspace *workspace, | 155 | struct sway_container *container, struct sway_workspace *workspace, |
156 | enum wlr_direction move_dir) { | 156 | enum wlr_direction move_dir) { |
157 | container->width = container->height = 0; | ||
158 | |||
157 | if (is_parallel(workspace->layout, move_dir)) { | 159 | if (is_parallel(workspace->layout, move_dir)) { |
158 | wlr_log(WLR_DEBUG, "Reparenting container (parallel)"); | 160 | wlr_log(WLR_DEBUG, "Reparenting container (parallel)"); |
159 | int index = | 161 | int index = |