aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar David96 <david@hameipe.de>2020-05-02 15:41:08 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-05 17:39:26 +0200
commite5fed6b246533a9bcf0d9326075f7c93be2aeec5 (patch)
tree7d1e43ac74e4a7d7cac1f40aac3601fc1050292e /sway/input/cursor.c
parentinput/cursor: remove erroneous cast for tablet tool button (diff)
downloadsway-e5fed6b246533a9bcf0d9326075f7c93be2aeec5.tar.gz
sway-e5fed6b246533a9bcf0d9326075f7c93be2aeec5.tar.zst
sway-e5fed6b246533a9bcf0d9326075f7c93be2aeec5.zip
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,
268 cursor->hide_source, cursor_get_timeout(cursor)); 268 cursor->hide_source, cursor_get_timeout(cursor));
269 269
270 seat_idle_notify_activity(cursor->seat, idle_source); 270 seat_idle_notify_activity(cursor->seat, idle_source);
271 if (cursor->hidden) { 271 if (cursor->hidden && idle_source != IDLE_SOURCE_TOUCH) {
272 cursor_unhide(cursor); 272 cursor_unhide(cursor);
273 } 273 }
274} 274}