From 31cc2fa4f9eae8f6c884b35c500aef4225b3f9ef Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 26 Sep 2018 23:08:52 +0200 Subject: pointer-constraints: make region not a pointer, add committed bitfield --- rootston/desktop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rootston') 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; -- cgit v1.2.3