mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-09 10:38:33 +02:00
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:
parent
aa4726c7e2
commit
b7bc345b40
1 changed files with 1 additions and 0 deletions
|
|
@ -913,6 +913,7 @@ libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_event
|
||||||
of the device too */
|
of the device too */
|
||||||
while (queue_shift(dev, &e) == 0) {
|
while (queue_shift(dev, &e) == 0) {
|
||||||
dev->queue_nsync--;
|
dev->queue_nsync--;
|
||||||
|
sanitize_event(dev, &e);
|
||||||
update_state(dev, &e);
|
update_state(dev, &e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue