aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-05-26 10:05:33 -0400
committerFurkan Sahin <furkan-dev@proton.me>2020-05-26 10:05:33 -0400
commitc42c21f1654eec887932dfd0422ae0d974e387ce (patch)
tree12f9433510ad1827fe86d77a672b748238057766 /include
parent35566d6f9d283c5e2cbca531211273964059906f (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/seat.h1
1 files changed, 1 insertions, 0 deletions
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;