Message ID | c484b5f2-d227-6a09-3742-4f9c3c25d779@astralinux.ru (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Jiri Kosina |
Headers | show |
Series | Upd: hid-multitouch: is pen hovering ever possible? | expand |
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 362805ddf377..41d809947a0a 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1334,6 +1334,11 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, return 1; } + if (field->application == HID_DG_PEN) { + rdata->is_mt_collection = false; + return 0; + } + if (rdata->is_mt_collection) return mt_touch_input_mapping(hdev, hi, field, usage, bit, max, application);