aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/tablet/wacom_wac.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 536156baedfe..e1b65ba84438 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -866,7 +866,13 @@ static int wacom_bpt_touch(struct wacom_wac *wacom)
866 for (i = 0; i < 2; i++) { 866 for (i = 0; i < 2; i++) {
867 int p = data[9 * i + 2]; 867 int p = data[9 * i + 2];
868 input_mt_slot(input, i); 868 input_mt_slot(input, i);
869 if (p) { 869 /*
870 * Touch events need to be disabled while stylus is
871 * in proximity because user's hand is resting on touchpad
872 * and sending unwanted events. User expects tablet buttons
873 * to continue working though.
874 */
875 if (p && !wacom->shared->stylus_in_proximity) {
870 int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff; 876 int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff;
871 int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff; 877 int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff;
872 if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) { 878 if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) {