diff options
author | Daniel Stone <daniel@fooishbar.org> | 2010-03-11 14:19:04 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-03-12 13:06:22 +1000 |
commit | a2ea8c2f2cc53607d57d60f41c879380ea70cd02 (patch) | |
tree | 59c25a61febbeff6e7a26ed33da1517984b96b9d /Xi | |
parent | f2eacb4646beb25d055de22868f93e6b24f229b6 (diff) |
Record: Avoid duplicates from replaying frozen events
Reintroduce a check which used to be there in the old
ProcessKeyboardEvent/ProcessPointerEvent codepath, which avoids us
recording events subject to a grab twice: once when it's first processed
in EnqueueEvent, and then again when it's thawed and being replayed.
This required a tiny amount of code motion to expose syncEvents.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/exevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index a63b65b6b..e680f6fb8 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -1051,7 +1051,7 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device) break; } - if (DeviceEventCallback) { + if (DeviceEventCallback && !syncEvents.playingEvents) { DeviceEventInfoRec eventinfo; SpritePtr pSprite = device->spriteInfo->sprite; |