aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/move.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-31 19:11:52 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commit9d168a693daab754b998743a36edf866f16e82d3 (patch)
treebd62b538f086676dbaaca5e78ce55d72182989b2 /sway/commands/move.c
parentUpdate output propertes on mode change (diff)
downloadsway-9d168a693daab754b998743a36edf866f16e82d3.tar.gz
sway-9d168a693daab754b998743a36edf866f16e82d3.tar.zst
sway-9d168a693daab754b998743a36edf866f16e82d3.zip
Fix moving workspace to output
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c3
1 files changed, 2 insertions, 1 deletions
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,
622 workspace_consider_destroy(new_output_old_ws); 622 workspace_consider_destroy(new_output_old_ws);
623 623
624 output_sort_workspaces(output); 624 output_sort_workspaces(output);
625 seat_set_focus(seat, &output->node); 625 struct sway_node *focus = seat_get_focus_inactive(seat, &workspace->node);
626 seat_set_focus(seat, focus);
626 workspace_output_raise_priority(workspace, old_output, output); 627 workspace_output_raise_priority(workspace, old_output, output);
627 ipc_event_workspace(NULL, workspace, "move"); 628 ipc_event_workspace(NULL, workspace, "move");
628} 629}