commit e5fed6b246533a9bcf0d9326075f7c93be2aeec5
parent 52bd6aecf24af2aefc202d73aeef205cd62fa8b8
Author: David96 <david@hameipe.de>
Date: Sat, 2 May 2020 15:41:08 +0200
Don't unhide cursor on touch events
Touch events hide the cursor so unhiding it again only causes it to
flicker.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);
}
}