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.
This commit is contained in:
Simon Ser 2023-12-13 21:44:27 +01:00
parent 85f44f3684
commit da5f53b461

View file

@ -114,7 +114,7 @@ static void pointer_constraint_commit(
WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) { WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) {
constraint->current.cursor_hint = constraint->pending.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; bool updated_region = !!constraint->pending.committed;
constraint->pending.committed = 0; constraint->pending.committed = 0;