From fa9e6c273571a03f68870d02ffca8a000f04d3d1 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Sat, 11 Apr 2020 10:52:35 +0200 Subject: [PATCH] Call tree_render if floating move changes workspace This fixes a bug where moving a floating container with cmd_move_direction displays a "broken" state if the container crosses workspace boundaries. --- src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 5ddcc176..70b0c8a2 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1526,7 +1526,7 @@ void cmd_move_direction(I3_CMD, const char *direction_str, long move_px) { break; } - floating_reposition(current->con->parent, newrect); + cmd_output->needs_tree_render = floating_reposition(current->con->parent, newrect); } else { tree_move(current->con, direction); cmd_output->needs_tree_render = true;