mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
HID: wacom: generic: Clear ABS_MISC when tool leaves proximity
The tool ID information sent in ABS_MISC is expected to be reset to 0
when a tool leaves proximity. Not doing this can cause problems if a
tool is removed and then re-introduced. Kernel event filtering will
prevent the (identical) ABS_MISC event from being sent when the tool
re-enters proxmity. This can cause userspace to not properly set the
tool ID.
Fixes: f85c9dc678 ("HID: wacom: generic: Support tool ID and additional tool types")
Cc: stable # v4.10 <[email protected]>
Signed-off-by: Ping Cheng <[email protected]>
Signed-off-by: Jason Gerecke <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
993f0d93f8
commit
92380b572d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue