Skip to content

Commit

Permalink
commands/move: Warp cursor after moving workspace to another output
Browse files Browse the repository at this point in the history
This makes sway's behavior consistent with i3 when `mouse_warping` is
set to any value besides `none`.

Fixes #7027.
  • Loading branch information
anpandey authored and rpigott committed Dec 19, 2022
1 parent fbf9191 commit e3c63bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sway/commands/move.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit e3c63bf

Please sign in to comment.