touchpad: exclude Logitech touchpads from disable-while-typing

Logitech does not sell internal touchpads, the closest ones are the TK820 and
the K400 series devices. Neither of which need DWT, the touchpad is next to
the keyboard.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Peter Hutterer 2016-04-21 15:08:23 +10:00
parent 46c2fdd522
commit 248912f1ef
2 changed files with 5 additions and 0 deletions

View file

@ -1335,6 +1335,10 @@ tp_want_dwt(struct evdev_device *touchpad,
if (bus_tp == BUS_I8042 && bus_kbd != bus_tp)
return false;
/* Logitech does not have internal touchpads */
if (vendor_tp == VENDOR_ID_LOGITECH)
return false;
/* For Apple touchpads, always use its internal keyboard */
if (vendor_tp == VENDOR_ID_APPLE) {
return vendor_kbd == vendor_tp &&

View file

@ -37,6 +37,7 @@
#include "libinput.h"
#define VENDOR_ID_APPLE 0x5ac
#define VENDOR_ID_LOGITECH 0x46d
#define VENDOR_ID_WACOM 0x56a
#define VENDOR_ID_SYNAPTICS_SERIAL 0x002
#define PRODUCT_ID_APPLE_KBD_TOUCHPAD 0x273