mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
Input: wacom - disable Bamboo touchpad when pen is being used
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
2aaacb1536
commit
33d5f713a1
1 changed files with 7 additions and 1 deletions
|
@ -866,7 +866,13 @@ static int wacom_bpt_touch(struct wacom_wac *wacom)
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
int p = data[9 * i + 2];
|
int p = data[9 * i + 2];
|
||||||
input_mt_slot(input, i);
|
input_mt_slot(input, i);
|
||||||
if (p) {
|
/*
|
||||||
|
* Touch events need to be disabled while stylus is
|
||||||
|
* in proximity because user's hand is resting on touchpad
|
||||||
|
* and sending unwanted events. User expects tablet buttons
|
||||||
|
* to continue working though.
|
||||||
|
*/
|
||||||
|
if (p && !wacom->shared->stylus_in_proximity) {
|
||||||
int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff;
|
int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff;
|
||||||
int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff;
|
int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff;
|
||||||
if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) {
|
if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) {
|
||||||
|
|
Loading…
Reference in a new issue