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:
Drew DeVault 2018-04-08 12:42:56 -04:00
parent ebabcc8b44
commit 9c5a88a7bd
3 changed files with 12 additions and 21 deletions

View file

@ -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