aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorAnkit Pandey <anpandey@protonmail.com>2022-12-17 15:01:20 -0800
committerRonan Pigott <ronan@rjp.ie>2022-12-19 00:31:09 -0700
commite3c63bf58d0744dfb436f0f38442ce3735e40f47 (patch)
treeabe501e5e44df591e64496a964da140af6cd9f7b /sway
parentfbf9191fb8373e6718c61586329aaf362eeaa0c0 (diff)
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.
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/move.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 0d0d9727..7bd1fe3e 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -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);
}