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/input/seat.c | |
parent | Merge pull request #2885 from RyanDwyer/fix-tiling-drag-crash (diff) | |
parent | Introduce cursor_rebase (diff) | |
download | sway-5b8257b88f703f48466f3b917f1ceaee7c457355.tar.gz sway-5b8257b88f703f48466f3b917f1ceaee7c457355.tar.zst sway-5b8257b88f703f48466f3b917f1ceaee7c457355.zip |
Merge pull request #2872 from RyanDwyer/cursor-rebase
Introduce cursor_rebase
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 659ec89b..d7733855 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1174,7 +1174,7 @@ void seat_end_mouse_operation(struct sway_seat *seat) { | |||
1174 | seat->cursor->previous.x = seat->op_ref_lx; | 1174 | seat->cursor->previous.x = seat->op_ref_lx; |
1175 | seat->cursor->previous.y = seat->op_ref_ly; | 1175 | seat->cursor->previous.y = seat->op_ref_ly; |
1176 | if (seat->op_moved) { | 1176 | if (seat->op_moved) { |
1177 | cursor_send_pointer_motion(seat->cursor, 0, true); | 1177 | cursor_send_pointer_motion(seat->cursor, 0); |
1178 | } | 1178 | } |
1179 | } else { | 1179 | } else { |
1180 | cursor_set_image(seat->cursor, "left_ptr", NULL); | 1180 | cursor_set_image(seat->cursor, "left_ptr", NULL); |
@@ -1208,5 +1208,5 @@ void seat_consider_warp_to_focus(struct sway_seat *seat) { | |||
1208 | } else { | 1208 | } else { |
1209 | cursor_warp_to_workspace(seat->cursor, focus->sway_workspace); | 1209 | cursor_warp_to_workspace(seat->cursor, focus->sway_workspace); |
1210 | } | 1210 | } |
1211 | cursor_send_pointer_motion(seat->cursor, 0, false); | 1211 | cursor_rebase(seat->cursor); |
1212 | } | 1212 | } |