commands/move: Warp cursor after moving workspace to another output

This makes sway's behavior consistent with i3 when `mouse_warping` is
set to any value besides `none`.

Fixes #7027.

(cherry picked from commit e3c63bf58d)
This commit is contained in:
Ankit Pandey 2022-12-17 15:01:20 -08:00 committed by Simon Ser
parent 54d1e0d568
commit 51663bb120

View File

@ -686,6 +686,9 @@ static struct cmd_results *cmd_move_workspace(int argc, char **argv) {
arrange_output(old_output);
arrange_output(new_output);
struct sway_seat *seat = config->handler_context.seat;
seat_consider_warp_to_focus(seat);
return cmd_results_new(CMD_SUCCESS, NULL);
}