aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2024-03-28 11:45:46 +0100
committerLibravatar Kenny Levinsen <kl@kl.wtf>2024-03-28 11:49:20 +0100
commit9e1465107788af2c8ce93e2a288e9d32bc09711c (patch)
tree99d77c4522e26b53520739a57bbfdf8dd6ce2222
parentcommands/output/toggle: Use free_output_config (diff)
downloadsway-9e1465107788af2c8ce93e2a288e9d32bc09711c.tar.gz
sway-9e1465107788af2c8ce93e2a288e9d32bc09711c.tar.zst
sway-9e1465107788af2c8ce93e2a288e9d32bc09711c.zip
input: pass wlr_seat_client to wlr_seat_touch_notify_cancel()
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4613
-rw-r--r--sway/input/seatop_down.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c
index 35fd3bcb..340e334b 100644
--- a/sway/input/seatop_down.c
+++ b/sway/input/seatop_down.c
@@ -117,7 +117,11 @@ static void handle_touch_cancel(struct sway_seat *seat,
117 } 117 }
118 118
119 if (e->surface) { 119 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 }
121 } 125 }
122 126
123 if (wl_list_empty(&e->point_events)) { 127 if (wl_list_empty(&e->point_events)) {