diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-04-19 22:49:19 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-04-22 17:30:08 +0200 |
commit | 44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23 (patch) | |
tree | e6acae4b7308b641626cba77bdc8583a9e5caf27 /include | |
parent | input/cursor: fix jerky resizing of non-tablet_v2 surfaces (diff) | |
download | sway-44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23.tar.gz sway-44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23.tar.zst sway-44b2d3ad81cd11aa7f21a3954ce70a0c21adfa23.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/cursor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 5b6f9a9f..35738894 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h | |||
@@ -85,7 +85,8 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat); | |||
85 | void cursor_rebase(struct sway_cursor *cursor); | 85 | void cursor_rebase(struct sway_cursor *cursor); |
86 | void cursor_rebase_all(void); | 86 | void cursor_rebase_all(void); |
87 | 87 | ||
88 | void cursor_handle_activity(struct sway_cursor *cursor); | 88 | void cursor_handle_activity(struct sway_cursor *cursor, |
89 | enum sway_input_idle_source idle_source); | ||
89 | void cursor_unhide(struct sway_cursor *cursor); | 90 | void cursor_unhide(struct sway_cursor *cursor); |
90 | int cursor_get_timeout(struct sway_cursor *cursor); | 91 | int cursor_get_timeout(struct sway_cursor *cursor); |
91 | 92 | ||