From da5f53b46176f05731e94dec5f079c1ce7a57ed5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 13 Dec 2023 21:44:27 +0100 Subject: [PATCH] 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. --- types/wlr_pointer_constraints_v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;