mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
input/cursor: fix hide cursor timeouts on tablets and touchscreens
This commit refactors `cursor_handle_activity` to also take the idle source, so that it can be reused for tablet and touch activity. Previously, the timeouts would be tracked, but the cursor would never be un-hidden for anything but pointers. Fixes #5169.
This commit is contained in:
parent
c23182fd7a
commit
44b2d3ad81
3 changed files with 19 additions and 15 deletions
|
|
@ -85,7 +85,8 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
|
|||
void cursor_rebase(struct sway_cursor *cursor);
|
||||
void cursor_rebase_all(void);
|
||||
|
||||
void cursor_handle_activity(struct sway_cursor *cursor);
|
||||
void cursor_handle_activity(struct sway_cursor *cursor,
|
||||
enum sway_input_idle_source idle_source);
|
||||
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