From d233e75eec605c30dc527c4b5080d5ee997769b4 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 3 May 2018 08:21:29 -0400 Subject: [PATCH] Hide cursor on touch down --- sway/input/cursor.c | 2 ++ 1 file changed, 2 insertions(+) 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); } }