diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-13 21:44:27 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-25 10:36:26 +0000 |
commit | da5f53b46176f05731e94dec5f079c1ce7a57ed5 (patch) | |
tree | dd588ed1f894d6db77bd07f14a578c118dbd7e7c | |
parent | 85f44f3684c18a77ecbe33203d27382561eb8db6 (diff) | |
download | wlroots-da5f53b46176f05731e94dec5f079c1ce7a57ed5.tar.xz |
pointer-constraints-v1: reset committed on commit
Knowing which fields changed in the last commit is more useful than
knowing which fields were ever set on the surface.
-rw-r--r-- | types/wlr_pointer_constraints_v1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_pointer_constraints_v1.c b/types/wlr_pointer_constraints_v1.c index 16ecc9ac..1478431e 100644 --- a/types/wlr_pointer_constraints_v1.c +++ b/types/wlr_pointer_constraints_v1.c @@ -114,7 +114,7 @@ static void pointer_constraint_commit( WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) { constraint->current.cursor_hint = constraint->pending.cursor_hint; } - constraint->current.committed |= constraint->pending.committed; + constraint->current.committed = constraint->pending.committed; bool updated_region = !!constraint->pending.committed; constraint->pending.committed = 0; |