diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-16 17:34:38 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-16 17:44:10 -0500 |
commit | fb18e345a6e4546fe87729962b54cce61759bc71 (patch) | |
tree | c7d5037b3b23cb3daa611fe80ebbce1b4ddba8fd /rootston/cursor.c | |
parent | 4434be835d6aaf6314f2596181295fabd883eac9 (diff) |
wlr-seat: return serial from touch down interface
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r-- | rootston/cursor.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |