Message ID | 20170908004738.2893-1-ping.cheng@wacom.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index e2ba36d..aa692e2 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -2272,7 +2272,7 @@ static void wacom_wac_pen_report(struct hid_device *hdev, input_report_key(input, wacom_wac->tool[0], prox); if (wacom_wac->serial[0]) { input_event(input, EV_MSC, MSC_SERIAL, wacom_wac->serial[0]); - input_report_abs(input, ABS_MISC, id); + input_report_abs(input, ABS_MISC, prox ? id : 0); } wacom_wac->hid_data.tipswitch = false;