mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
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.
This commit is contained in:
parent
21b77f376d
commit
82c439c4f1
3 changed files with 45 additions and 26 deletions
|
|
@ -91,7 +91,7 @@ void cursor_rebase_all(void);
|
|||
void cursor_update_image(struct sway_cursor *cursor, struct sway_node *node);
|
||||
|
||||
void cursor_handle_activity(struct sway_cursor *cursor,
|
||||
enum sway_input_idle_source idle_source);
|
||||
struct wlr_input_device *device);
|
||||
void cursor_unhide(struct sway_cursor *cursor);
|
||||
int cursor_get_timeout(struct sway_cursor *cursor);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue