commit 812525246a362aa29c994a3c69b18ddecc98f015
parent 00e62c214d6f17d81d3002c19f6b04bafd7da891
Author: emersion <contact@emersion.fr>
Date: Thu, 3 May 2018 15:45:40 +0100
Merge pull request #1901 from swaywm/touch-hide-cursor
Hide cursor on touch down
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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);
}
}