From e5fed6b246533a9bcf0d9326075f7c93be2aeec5 Mon Sep 17 00:00:00 2001 From: David96 Date: Sat, 2 May 2020 15:41:08 +0200 Subject: [PATCH] Don't unhide cursor on touch events Touch events hide the cursor so unhiding it again only causes it to flicker. --- sway/input/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }