From fb18e345a6e4546fe87729962b54cce61759bc71 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Thu, 16 Nov 2017 17:34:38 -0500 Subject: wlr-seat: return serial from touch down interface --- rootston/cursor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rootston') diff --git a/rootston/cursor.c b/rootston/cursor.c index 35fe9c25..40618fe7 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -234,12 +234,13 @@ void roots_cursor_handle_touch_down(struct roots_cursor *cursor, double sx, sy; view_at(desktop, lx, ly, &surface, &sx, &sy); + uint32_t serial = 0; if (surface) { - wlr_seat_touch_notify_down(cursor->seat->seat, surface, + serial = wlr_seat_touch_notify_down(cursor->seat->seat, surface, event->time_msec, event->slot, sx, sy); } - if (wlr_seat_touch_num_points(cursor->seat->seat) == 1) { + if (serial && wlr_seat_touch_num_points(cursor->seat->seat) == 1) { cursor->seat->touch_id = event->slot; cursor->seat->touch_x = lx; cursor->seat->touch_y = ly; -- cgit v1.2.3