Sanitize events when we're skipping sync as well

If a client doesn't sync expliciltly, make sure we sanitize the events when we
update the internal library state.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Peter Hutterer 2014-03-17 16:08:36 +10:00
parent aa4726c7e2
commit b7bc345b40

View file

@ -913,6 +913,7 @@ libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_event
of the device too */
while (queue_shift(dev, &e) == 0) {
dev->queue_nsync--;
sanitize_event(dev, &e);
update_state(dev, &e);
}