mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-22 06:59:44 -05:00
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. Fixes75ecba44("seat: add serials to touch up events") Signed-off-by: Guido Günther <agx@sigxcpu.org> (cherry picked from commitfef4f3637a)
This commit is contained in:
parent
cda69b696d
commit
d981860314
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue