aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorDavid96 <david@hameipe.de>2020-05-02 15:41:08 +0200
committerSimon Ser <contact@emersion.fr>2020-05-05 17:39:26 +0200
commite5fed6b246533a9bcf0d9326075f7c93be2aeec5 (patch)
tree7d1e43ac74e4a7d7cac1f40aac3601fc1050292e /sway/input/cursor.c
parent52bd6aecf24af2aefc202d73aeef205cd62fa8b8 (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.c2
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);
}
}