[PATCH libevdev] Sanitize events when we're skipping sync as well

Peter Hutterer peter.hutterer at who-t.net
Sun Mar 16 23:10:48 PDT 2014


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 at who-t.net>
---
 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);
 		}
 
-- 
1.8.5.3



More information about the Input-tools mailing list