summaryrefslogtreecommitdiffstats
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-08 12:42:56 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-08 12:42:56 -0400
commit9c5a88a7bd57dc9710c0fe779d8403a87ddc0b6a (patch)
treed154691ce597acb68cba20160ef324f22fa45eba /include/sway/input/cursor.h
parentMerge pull request #1777 from emersion/unmanaged-cursor-input (diff)
downloadsway-9c5a88a7bd57dc9710c0fe779d8403a87ddc0b6a.tar.gz
sway-9c5a88a7bd57dc9710c0fe779d8403a87ddc0b6a.tar.zst
sway-9c5a88a7bd57dc9710c0fe779d8403a87ddc0b6a.zip
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/input/cursor.h')
-rw-r--r--include/sway/input/cursor.h2
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 {
8 struct wlr_cursor *cursor; 8 struct wlr_cursor *cursor;
9 struct wlr_xcursor_manager *xcursor_manager; 9 struct wlr_xcursor_manager *xcursor_manager;
10 10
11 double x, y;
12 struct wl_client *image_client; 11 struct wl_client *image_client;
13 12
14 struct wl_listener motion; 13 struct wl_listener motion;
@@ -30,5 +29,6 @@ struct sway_cursor {
30 29
31void sway_cursor_destroy(struct sway_cursor *cursor); 30void sway_cursor_destroy(struct sway_cursor *cursor);
32struct sway_cursor *sway_cursor_create(struct sway_seat *seat); 31struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
32void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time);
33 33
34#endif 34#endif