aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
Diffstat (limited to 'rootston')
-rw-r--r--rootston/desktop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index d469c263..a1e61738 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -798,7 +798,9 @@ static void handle_constraint_destroy(
struct roots_seat* seat = constraint->seat->data;
if (seat->cursor->active_constraint == constraint) {
roots_cursor_constrain(seat->cursor, NULL, NAN, NAN);
- if (constraint->current.cursor_hint.valid && seat->cursor->pointer_view) {
+ if (constraint->current.committed &
+ WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT &&
+ seat->cursor->pointer_view) {
double sx = constraint->current.cursor_hint.x;
double sy = constraint->current.cursor_hint.y;