diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-08 12:42:56 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-08 12:42:56 -0400 |
commit | 9c5a88a7bd57dc9710c0fe779d8403a87ddc0b6a (patch) | |
tree | d154691ce597acb68cba20160ef324f22fa45eba /include/sway | |
parent | ebabcc8b44846eaccdd34e3e48aa07d6bf7b58a7 (diff) |
Fix cursor motion issues
Use only one canonical cursor x/y position and send cursor enter when
mouse is warped.
Tangentally related to #1714
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/input/cursor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 8f907dcd..daf7d4ee 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h @@ -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 |