mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
input/cursor: don't send wl_pointer.motion event on pointer unlock warp
On warping to a cursor hint, update the pointer position we track as well, so that on the next pointer rebase we don't send an unexpected synthetic motion event to clients. Fixes #5405.
This commit is contained in:
parent
2f3afef95c
commit
6b9a9b6246
1 changed files with 4 additions and 0 deletions
|
@ -1244,6 +1244,10 @@ static void warp_to_constraint_cursor_hint(struct sway_cursor *cursor) {
|
|||
double ly = sy + con->content_y - view->geometry.y;
|
||||
|
||||
wlr_cursor_warp(cursor->cursor, NULL, lx, ly);
|
||||
|
||||
// Warp the pointer as well, so that on the next pointer rebase we don't
|
||||
// send an unexpected synthetic motion event to clients.
|
||||
wlr_seat_pointer_warp(constraint->seat, sx, sy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue