From d71fed95da5af5a489d2ea68b87a306ddc4d238d Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Tue, 26 May 2020 10:05:33 -0400 Subject: input/cursor: keep reference to cursor in constraint set_region accepts a NULL *data, so we can't use it to reference the constraint and find the cursor through its seat. Fixes #5386. --- include/sway/input/seat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sway/input') diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index e313a206..37de1223 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -111,6 +111,7 @@ struct sway_seat { }; struct sway_pointer_constraint { + struct sway_cursor *cursor; struct wlr_pointer_constraint_v1 *constraint; struct wl_listener set_region; -- cgit v1.2.3