mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 15:31:28 +00:00
input: pass wlr_seat_client to wlr_seat_touch_notify_cancel()
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4613
This commit is contained in:
parent
a4ef37752f
commit
9e14651077
|
@ -117,7 +117,11 @@ static void handle_touch_cancel(struct sway_seat *seat,
|
|||
}
|
||||
|
||||
if (e->surface) {
|
||||
wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface);
|
||||
struct wl_client *client = wl_resource_get_client(e->surface->resource);
|
||||
struct wlr_seat_client *seat_client = wlr_seat_client_for_wl_client(seat->wlr_seat, client);
|
||||
if (seat_client != NULL) {
|
||||
wlr_seat_touch_notify_cancel(seat->wlr_seat, seat_client);
|
||||
}
|
||||
}
|
||||
|
||||
if (wl_list_empty(&e->point_events)) {
|
||||
|
|
Loading…
Reference in a new issue