struct evdev_device *device)
{
int width, height;
+ unsigned int vendor_id;
tp->palm.right_edge = INT_MAX;
tp->palm.left_edge = INT_MIN;
height = abs(device->abs.absinfo_y->maximum -
device->abs.absinfo_y->minimum);
- /* Apple touchpads are always big enough to warrant palm detection */
- if (evdev_device_get_id_vendor(device) != VENDOR_ID_APPLE) {
+ vendor_id = evdev_device_get_id_vendor(device);
+
+ /* Wacom doesn't have internal touchpads,
+ * Apple touchpads are always big enough to warrant palm detection */
+ if (vendor_id == VENDOR_ID_WACOM) {
+ return 0;
+ } else if (vendor_id != VENDOR_ID_APPLE) {
/* We don't know how big the touchpad is */
if (device->abs.absinfo_x->resolution == 1)
return 0;
touchpad_has_palm_detect_size(struct litest_device *dev)
{
double width, height;
+ unsigned int vendor;
int rc;
- if (libinput_device_get_id_vendor(dev->libinput_device) == ID_VENDOR_APPLE)
+ vendor = libinput_device_get_id_vendor(dev->libinput_device);
+ if (vendor == VENDOR_ID_WACOM)
+ return 0;
+ if (vendor == VENDOR_ID_APPLE)
return 1;
rc = libinput_device_get_size(dev->libinput_device, &width, &height);