From 14cab7861294189f820e0830ae84ac7b15271342 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 9 Jan 2019 23:07:32 +1000 Subject: Reset container dimensions when moving into workspace from direction --- sway/commands/move.c | 2 ++ 1 file changed, 2 insertions(+) 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( static void container_move_to_workspace_from_direction( struct sway_container *container, struct sway_workspace *workspace, enum wlr_direction move_dir) { + container->width = container->height = 0; + if (is_parallel(workspace->layout, move_dir)) { wlr_log(WLR_DEBUG, "Reparenting container (parallel)"); int index = -- cgit v1.2.3