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/tree/view.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/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 85998547..43a9d510 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -653,9 +653,8 @@ void view_unmap(struct sway_view *view) { | |||
653 | } else if (node && node->type == N_WORKSPACE) { | 653 | } else if (node && node->type == N_WORKSPACE) { |
654 | cursor_warp_to_workspace(seat->cursor, node->sway_workspace); | 654 | cursor_warp_to_workspace(seat->cursor, node->sway_workspace); |
655 | } | 655 | } |
656 | } else { | ||
657 | cursor_send_pointer_motion(seat->cursor, 0, true); | ||
658 | } | 656 | } |
657 | cursor_rebase(seat->cursor); | ||
659 | } | 658 | } |
660 | 659 | ||
661 | transaction_commit_dirty(); | 660 | transaction_commit_dirty(); |