diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-20 05:06:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 05:06:03 +0200 |
commit | 5b8257b88f703f48466f3b917f1ceaee7c457355 (patch) | |
tree | f0d00406e3cb449c2492d6cb8b35a1a57546eebd /sway/tree | |
parent | 3b8dd4958311f40701e352bf49b62ae850cdd2f9 (diff) | |
parent | 9ea71f292b2270f37cf7ca641b7bae628ef41ed7 (diff) | |
download | sway-5b8257b88f703f48466f3b917f1ceaee7c457355.tar.xz |
Merge pull request #2872 from RyanDwyer/cursor-rebase
Introduce cursor_rebase
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/view.c | 3 | ||||
-rw-r--r-- | sway/tree/workspace.c | 2 |
2 files changed, 2 insertions, 3 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) { } else if (node && node->type == N_WORKSPACE) { cursor_warp_to_workspace(seat->cursor, node->sway_workspace); } - } else { - cursor_send_pointer_motion(seat->cursor, 0, true); } + cursor_rebase(seat->cursor); } transaction_commit_dirty(); diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index a1282c1e..2a00824d 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -399,7 +399,7 @@ bool workspace_switch(struct sway_workspace *workspace, } seat_set_focus(seat, next); arrange_workspace(workspace); - cursor_send_pointer_motion(seat->cursor, 0, true); + cursor_rebase(seat->cursor); return true; } |