Input: wacom - Mark Intuos5 pad as in-prox when touching buttons
Subsystems (2)
PATCH 1/1 Input: wacom - Mark Intuos5 pad as in-prox when touching buttons
If the ExpressKeys on the Intuos5 are touched, they currently result an out-of-prox packet being sent even if the pad is already out of prox. This can cause some confusion in the X driver. To restore the expected semantics, we make being touched a sufficient condition to signal proximity.
https://bugs.freedesktop.org/show_bug.cgi?id=54250
--- drivers/input/tablet/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/tablet/wacom_wac.c +1 -1
@@ -606,7 +606,7 @@ static int wacom_intuos_irq(struct wacom_wac *wacom)input_report_abs (input,ABS_WHEEL ,0 ); } -if (data[2 ] | (data[3 ] &0x01 ) | data[4 ]) { +if (data[2 ] | (data[3 ] &0x01 ) | data[4 ] | data[5 ]) {input_report_key (input, wacom->tool[1 ],1 );input_report_abs (input,ABS_MISC ,PAD_DEVICE_ID ); }else {
Signature · 1 line
1.7.12
Quoted 5 lines · Jason Gerecke
If the ExpressKeys on the Intuos5 are touched, they currently result an out-of-prox packet being sent even if the pad is already out of prox. This can cause some confusion in the X driver. To restore the expected semantics, we make being touched a sufficient condition to signal proximity.
Seems like easiest solution to prevent invalid event sequencies.
Quoted 25 lines
https://bugs.freedesktop.org/show_bug.cgi?id=54250
Reported-by Timo Aaltonen <[email protected]>Signed-off-by Jason Gerecke <[email protected]>--- drivers/input/tablet/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/tablet/wacom_wac.c +1
-2@@ -606,7 +606,7 @@ static int wacom_intuos_irq(struct wacom_wac *wacom)input_report_abs (input,ABS_WHEEL ,0 ); } -if (data[2 ] | (data[3 ] &0x01 ) | data[4 ]) { +if (data[2 ] | (data[3 ] &0x01 ) | data[4 ] | data[5 ]) {input_report_key (input, wacom->tool[1 ],1 );input_report_abs (input,ABS_MISC ,PAD_DEVICE_ID ); }else { --1.7.12