From b7bc345b40ed4fc3887385e05c2415d455feb9b0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 17 Mar 2014 16:08:36 +1000 Subject: [PATCH] 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 Reviewed-by: Benjamin Tissoires --- libevdev/libevdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libevdev/libevdev.c b/libevdev/libevdev.c index 29b2ce4..0730d99 100644 --- a/libevdev/libevdev.c +++ b/libevdev/libevdev.c @@ -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); } -- 2.34.1