diff options
| author | Jason Gerecke <killertofu@gmail.com> | 2012-09-24 12:21:31 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-09-28 13:34:03 -0400 |
| commit | 5e056ef4ddeb6129f6bb170f2c26b8f370bbcda7 (patch) | |
| tree | 2251b54d41bb06b233a601b46a5055f67eb330f5 /drivers/input/tablet | |
| parent | 824efd37415961d38821ecbd9694e213fb2e8b32 (diff) | |
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
Reported-by: Timo Aaltonen <tjaalton@ubuntu.com>
Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet')
| -rw-r--r-- | drivers/input/tablet/wacom_wac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 532d067a9e0..93171098abb 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c | |||
| @@ -606,7 +606,7 @@ static int wacom_intuos_irq(struct wacom_wac *wacom) | |||
| 606 | input_report_abs(input, ABS_WHEEL, 0); | 606 | input_report_abs(input, ABS_WHEEL, 0); |
| 607 | } | 607 | } |
| 608 | 608 | ||
| 609 | if (data[2] | (data[3] & 0x01) | data[4]) { | 609 | if (data[2] | (data[3] & 0x01) | data[4] | data[5]) { |
| 610 | input_report_key(input, wacom->tool[1], 1); | 610 | input_report_key(input, wacom->tool[1], 1); |
| 611 | input_report_abs(input, ABS_MISC, PAD_DEVICE_ID); | 611 | input_report_abs(input, ABS_MISC, PAD_DEVICE_ID); |
| 612 | } else { | 612 | } else { |
