aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-03 08:21:29 -0400
committerDrew DeVault <sir@cmpwn.com>2018-05-03 10:39:34 -0400
commitd233e75eec605c30dc527c4b5080d5ee997769b4 (patch)
treeefc51e264ef7b3874b9545361b2a71699892c315 /sway/input
parent00e62c214d6f17d81d3002c19f6b04bafd7da891 (diff)
Hide cursor on touch down
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c2
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);
}
}