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/workspace.c | |
parent | 28f3b8cb038d54eeef5c6fe568b0ae360b59f96e (diff) |
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/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |