diff options
author | David96 <david@hameipe.de> | 2020-05-02 15:41:08 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-05 17:39:26 +0200 |
commit | e5fed6b246533a9bcf0d9326075f7c93be2aeec5 (patch) | |
tree | 7d1e43ac74e4a7d7cac1f40aac3601fc1050292e /sway/input/cursor.c | |
parent | 52bd6aecf24af2aefc202d73aeef205cd62fa8b8 (diff) |
Don't unhide cursor on touch events
Touch events hide the cursor so unhiding it again only causes it to
flicker.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 0b11c924..271c95f9 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -268,7 +268,7 @@ void cursor_handle_activity(struct sway_cursor *cursor, cursor->hide_source, cursor_get_timeout(cursor)); seat_idle_notify_activity(cursor->seat, idle_source); - if (cursor->hidden) { + if (cursor->hidden && idle_source != IDLE_SOURCE_TOUCH) { cursor_unhide(cursor); } } |