diff options
-rw-r--r-- | include/wlr/types/wlr_pointer_constraints_v1.h | 1 | ||||
-rw-r--r-- | types/wlr_pointer_constraints_v1.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_pointer_constraints_v1.h b/include/wlr/types/wlr_pointer_constraints_v1.h index 21280ff2..1ff10f9d 100644 --- a/include/wlr/types/wlr_pointer_constraints_v1.h +++ b/include/wlr/types/wlr_pointer_constraints_v1.h @@ -33,6 +33,7 @@ struct wlr_pointer_constraint_v1_state { // only valid for locked_pointer struct { + bool enabled; double x, y; } cursor_hint; }; diff --git a/types/wlr_pointer_constraints_v1.c b/types/wlr_pointer_constraints_v1.c index f22b18f4..16ecc9ac 100644 --- a/types/wlr_pointer_constraints_v1.c +++ b/types/wlr_pointer_constraints_v1.c @@ -97,6 +97,7 @@ static void pointer_constraint_set_cursor_position_hint(struct wl_client *client return; } + constraint->pending.cursor_hint.enabled = true; constraint->pending.cursor_hint.x = wl_fixed_to_double(x); constraint->pending.cursor_hint.y = wl_fixed_to_double(y); constraint->pending.committed |= WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT; |