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.
master
Simon Ser 11 months ago
parent 85f44f3684
commit da5f53b461

@ -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;

Loading…
Cancel
Save