seat: Don't forget to destroy touch points on touch up

Otherwise the number of touch points goes up constantly and d'n'd via
touch can't work as validation always fails.

Fixes 75ecba44 ("seat: add serials to touch up events")

Signed-off-by: Guido Günther <agx@sigxcpu.org>
(cherry picked from commit fef4f3637a)
This commit is contained in:
Guido Günther 2025-01-27 17:48:39 +01:00
parent cda69b696d
commit d981860314

View file

@ -214,9 +214,10 @@ uint32_t wlr_seat_touch_notify_up(struct wlr_seat *seat, uint32_t time,
return 0;
}
return grab->interface->up(grab, time, point);
uint32_t serial = grab->interface->up(grab, time, point);
touch_point_destroy(point);
return serial;
}
void wlr_seat_touch_notify_motion(struct wlr_seat *seat, uint32_t time,