diff options
author | Ankit Pandey <anpandey@protonmail.com> | 2022-12-17 15:01:20 -0800 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-12-19 10:39:53 +0100 |
commit | 51663bb120aef97d846757b1e119ce4ad25afb86 (patch) | |
tree | 60640fbc1bdb8076f4622234e3700cfc2e605e80 | |
parent | build: bump version to 1.8-rc3 (diff) | |
download | sway-51663bb120aef97d846757b1e119ce4ad25afb86.tar.gz sway-51663bb120aef97d846757b1e119ce4ad25afb86.tar.zst sway-51663bb120aef97d846757b1e119ce4ad25afb86.zip |
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 e3c63bf58d0744dfb436f0f38442ce3735e40f47)
-rw-r--r-- | sway/commands/move.c | 3 |
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) { | |||
686 | arrange_output(old_output); | 686 | arrange_output(old_output); |
687 | arrange_output(new_output); | 687 | arrange_output(new_output); |
688 | 688 | ||
689 | struct sway_seat *seat = config->handler_context.seat; | ||
690 | seat_consider_warp_to_focus(seat); | ||
691 | |||
689 | return cmd_results_new(CMD_SUCCESS, NULL); | 692 | return cmd_results_new(CMD_SUCCESS, NULL); |
690 | } | 693 | } |
691 | 694 | ||