diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-05-02 15:41:08 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-05-02 15:41:08 +0200 |
| commit | 3e8f8145f33181f2455dc28f766337da2c2f75b2 (patch) | |
| tree | 7d1e43ac74e4a7d7cac1f40aac3601fc1050292e | |
| parent | e1fc3429c83476a893407651b5483c616e34df73 (diff) | |
Don't unhide cursor on touch events
Touch events hide the cursor so unhiding it again only causes it to
flicker.
| -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); } } |
