From: Przemo Firszt <przemo@firszt.eu>
To: aris@redhat.com, jkosina@suse.cz
Cc: pinglinux@gmail.com, linuxwacom-devel@lists.sourceforge.net,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Przemo Firszt <przemo@firszt.eu>
Subject: [PATCH] HID: wacom: fix proximity tool release
Date: Sun, 19 Feb 2012 20:20:29 +0000 [thread overview]
Message-ID: <1329682829-24347-1-git-send-email-przemo@firszt.eu> (raw)
Don't zero the current tool before reporting its release to the input
subsystem.
Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Tested-by: Przemo Firszt <przemo@firszt.eu>
---
drivers/hid/hid-wacom.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c
index 0621047..696b907 100644
--- a/drivers/hid/hid-wacom.c
+++ b/drivers/hid/hid-wacom.c
@@ -322,10 +322,10 @@ static void wacom_i4_parse_pen_report(struct wacom_data *wdata,
switch (data[1]) {
case 0x80: /* Out of proximity report */
- wdata->tool = 0;
input_report_key(input, BTN_TOUCH, 0);
input_report_abs(input, ABS_PRESSURE, 0);
input_report_key(input, wdata->tool, 0);
+ wdata->tool = 0;
input_sync(input);
break;
case 0xC2: /* Tool report */
--
1.7.6.4
next reply other threads:[~2012-02-19 20:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-19 20:20 Przemo Firszt [this message]
2012-02-21 13:25 ` Chris Bagwell
2012-02-21 13:25 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329682829-24347-1-git-send-email-przemo@firszt.eu \
--to=przemo@firszt.eu \
--cc=aris@redhat.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxwacom-devel@lists.sourceforge.net \
--cc=pinglinux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®