mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Fix cursor motion issues
Use only one canonical cursor x/y position and send cursor enter when mouse is warped. Tangentally related to #1714
This commit is contained in:
parent
ebabcc8b44
commit
9c5a88a7bd
3 changed files with 12 additions and 21 deletions
|
|
@ -434,6 +434,9 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|||
wlr_output, seat->cursor->cursor->x,
|
||||
seat->cursor->cursor->y)) {
|
||||
wlr_cursor_warp(seat->cursor->cursor, NULL, x, y);
|
||||
struct timespec now;
|
||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue