touchpad: fix DWT pairing for Macbook Pro 2015
authorCaibin Chen <tigersoldi@gmail.com>
Mon, 14 Dec 2015 06:27:55 +0000 (22:27 -0800)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 11 Jan 2016 00:11:32 +0000 (10:11 +1000)
commitb3f11180e337d6cd7fd997685b65e5ed48acc661
tree858bc7c841ba42cb34f6da4149959c21fed97833
parenta340736e9b9399f630ff4b436930c1dee26cb803
touchpad: fix DWT pairing for Macbook Pro 2015

Label internal keyboards through the udev hwdb and only pair the internal
(usb) Apple touchpads with those keyboards labelled as such.

https://bugs.freedesktop.org/show_bug.cgi?id=93367

Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad.c
src/evdev.c
src/evdev.h
src/libinput-util.h
test/Makefile.am
test/litest-device-apple-internal-keyboard.c [new file with mode: 0644]
test/litest.c
test/litest.h
test/touchpad.c
udev/90-libinput-model-quirks.hwdb