diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-19 00:04:21 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-19 22:47:54 +1000 |
commit | 9ea71f292b2270f37cf7ca641b7bae628ef41ed7 (patch) | |
tree | fbeb938d3bb175013a0224e95ab50bdf0a678ae8 /sway/commands/border.c | |
parent | Merge pull request #2882 from RyanDwyer/fix-mouse-warp-logic (diff) | |
download | sway-9ea71f292b2270f37cf7ca641b7bae628ef41ed7.tar.gz sway-9ea71f292b2270f37cf7ca641b7bae628ef41ed7.tar.zst sway-9ea71f292b2270f37cf7ca641b7bae628ef41ed7.zip |
Introduce cursor_rebase
This function "rebases" the cursor on top of whatever is underneath it,
without triggering any focus changes.
Diffstat (limited to 'sway/commands/border.c')
-rw-r--r-- | sway/commands/border.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c index 2eed27bd..a50f7a1c 100644 --- a/sway/commands/border.c +++ b/sway/commands/border.c | |||
@@ -96,7 +96,7 @@ struct cmd_results *cmd_border(int argc, char **argv) { | |||
96 | 96 | ||
97 | struct sway_seat *seat = input_manager_current_seat(input_manager); | 97 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
98 | if (seat->cursor) { | 98 | if (seat->cursor) { |
99 | cursor_send_pointer_motion(seat->cursor, 0, false); | 99 | cursor_rebase(seat->cursor); |
100 | } | 100 | } |
101 | 101 | ||
102 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 102 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |