diff options
author | emersion <contact@emersion.fr> | 2018-05-03 15:45:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-03 15:45:40 +0100 |
commit | 812525246a362aa29c994a3c69b18ddecc98f015 (patch) | |
tree | efc51e264ef7b3874b9545361b2a71699892c315 /sway/input | |
parent | 00e62c214d6f17d81d3002c19f6b04bafd7da891 (diff) | |
parent | d233e75eec605c30dc527c4b5080d5ee997769b4 (diff) |
Merge pull request #1901 from swaywm/touch-hide-cursor
Hide cursor on touch down
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index e094bbbe..c0c6e827 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -264,6 +264,8 @@ static void handle_touch_down(struct wl_listener *listener, void *data) { if (seat_is_input_allowed(cursor->seat, surface)) { wlr_seat_touch_notify_down(seat, surface, event->time_msec, event->touch_id, sx, sy); + cursor->image_client = NULL; + wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0); } } |