mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 08:40:06 +01:00
test: actually filter events when writing to udev
Don't write events to the uinput device if we disabled that specific event code. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
32bf9f2990
commit
bdd6f3d40b
1 changed files with 3 additions and 0 deletions
|
|
@ -1698,6 +1698,9 @@ litest_event(struct litest_device *d, unsigned int type,
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (!libevdev_has_event_code(d->evdev, type, code))
|
||||
return;
|
||||
|
||||
if (d->skip_ev_syn && type == EV_SYN && code == SYN_REPORT)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue