mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -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
|
|
@ -8,7 +8,6 @@ struct sway_cursor {
|
|||
struct wlr_cursor *cursor;
|
||||
struct wlr_xcursor_manager *xcursor_manager;
|
||||
|
||||
double x, y;
|
||||
struct wl_client *image_client;
|
||||
|
||||
struct wl_listener motion;
|
||||
|
|
@ -30,5 +29,6 @@ struct sway_cursor {
|
|||
|
||||
void sway_cursor_destroy(struct sway_cursor *cursor);
|
||||
struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
|
||||
void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue