diff options
| author | emersion <contact@emersion.fr> | 2018-09-26 23:08:52 +0200 |
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-09-26 23:08:52 +0200 |
| commit | 31cc2fa4f9eae8f6c884b35c500aef4225b3f9ef (patch) | |
| tree | 868a70a89ace3db7fa0c8de7cee82ab62d5ad23a /rootston | |
| parent | c89cd4945be9a719ef8d0ff3fbd1736b573f92bc (diff) | |
| download | wlroots-31cc2fa4f9eae8f6c884b35c500aef4225b3f9ef.tar.xz | |
pointer-constraints: make region not a pointer, add committed bitfield
Diffstat (limited to 'rootston')
| -rw-r--r-- | rootston/desktop.c | 4 |
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; |
