aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-06-14 16:38:48 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-18 22:35:01 +0200
commit82c439c4f116b36d7d171bcc923b50ead59b4ab2 (patch)
tree3d503dfc3c3baa43ce1febef80d7a2259683b25d /include/sway/input/cursor.h
parentgrimshot: fix POSIX compliance (diff)
downloadsway-82c439c4f116b36d7d171bcc923b50ead59b4ab2.tar.gz
sway-82c439c4f116b36d7d171bcc923b50ead59b4ab2.tar.zst
sway-82c439c4f116b36d7d171bcc923b50ead59b4ab2.zip
input/cursor: send idle events based off device type, not input type
Previously, a tablet or touch device could report activity as a pointer device if it went through pointer emulation. This commit refactors idle sources to be consistently reported based on the type of the device that generated an input event, and now how that input event is being processed.
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 774921c8..c2e2228a 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -91,7 +91,7 @@ void cursor_rebase_all(void);
91void cursor_update_image(struct sway_cursor *cursor, struct sway_node *node); 91void cursor_update_image(struct sway_cursor *cursor, struct sway_node *node);
92 92
93void cursor_handle_activity(struct sway_cursor *cursor, 93void cursor_handle_activity(struct sway_cursor *cursor,
94 enum sway_input_idle_source idle_source); 94 struct wlr_input_device *device);
95void cursor_unhide(struct sway_cursor *cursor); 95void cursor_unhide(struct sway_cursor *cursor);
96int cursor_get_timeout(struct sway_cursor *cursor); 96int cursor_get_timeout(struct sway_cursor *cursor);
97 97