Skip to content

Commit 9e14651

Browse files
emersionkennylevinsen
authored andcommitted
input: pass wlr_seat_client to wlr_seat_touch_notify_cancel()
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4613
1 parent a4ef377 commit 9e14651

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sway/input/seatop_down.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ static void handle_touch_cancel(struct sway_seat *seat,
117117
}
118118

119119
if (e->surface) {
120-
wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface);
120+
struct wl_client *client = wl_resource_get_client(e->surface->resource);
121+
struct wlr_seat_client *seat_client = wlr_seat_client_for_wl_client(seat->wlr_seat, client);
122+
if (seat_client != NULL) {
123+
wlr_seat_touch_notify_cancel(seat->wlr_seat, seat_client);
124+
}
121125
}
122126

123127
if (wl_list_empty(&e->point_events)) {

0 commit comments

Comments
 (0)