From 9d168a693daab754b998743a36edf866f16e82d3 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 31 Aug 2018 19:11:52 +1000 Subject: Fix moving workspace to output --- sway/commands/move.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sway/commands/move.c b/sway/commands/move.c index c2098818..d562b5f1 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -622,7 +622,8 @@ static void workspace_move_to_output(struct sway_workspace *workspace, workspace_consider_destroy(new_output_old_ws); output_sort_workspaces(output); - seat_set_focus(seat, &output->node); + struct sway_node *focus = seat_get_focus_inactive(seat, &workspace->node); + seat_set_focus(seat, focus); workspace_output_raise_priority(workspace, old_output, output); ipc_event_workspace(NULL, workspace, "move"); } -- cgit v1.2.3