touchpad: if we have a serio keyboard, override any previous dwt pairing
If a USB keyboard like the YubiKey is found before the internal keyboard, it will be paired with the touchpad when it is seen. The internal keyboard is seen later bug ignored because we already have a keyboard paired with the touchpad. This is obviously wrong. For now, give priority to serio keyboards, and override existing dwt pairings with the new keyboard. https://bugs.freedesktop.org/show_bug.cgi?id=93983 Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Hans de Goede <hdegoede@redhat.com> (cherry picked from commit 0b0150e0)
- src/evdev-mt-touchpad.c 34 additions, 14 deletionssrc/evdev-mt-touchpad.c
- test/Makefile.am 2 additions, 0 deletionstest/Makefile.am
- test/litest-device-synaptics-i2c.c 102 additions, 0 deletionstest/litest-device-synaptics-i2c.c
- test/litest-device-yubikey.c 169 additions, 0 deletionstest/litest-device-yubikey.c
- test/litest.c 4 additions, 0 deletionstest/litest.c
- test/litest.h 2 additions, 0 deletionstest/litest.h
- test/touchpad.c 102 additions, 0 deletionstest/touchpad.c