This fixes a bug that is easy to reproduce and just as annoying: Just
touch the screen with two fingers and then move the pen in proximity.

Thanks,
Tom
>From e5fc494f70ab36e1459801e3907ccb812015fa8f Mon Sep 17 00:00:00 2001
From: Thomas Jaeger <[email protected]>
Date: Sun, 9 Oct 2011 12:18:19 -0400
Subject: [PATCH] Exit gesture mode when pen comes in range

Otherwise, the driver will be in an unusable state until the pen is lifted and
the user touches the device.

Signed-off-by: Thomas Jaeger <[email protected]>
---
 src/wcmCommon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index e4ff7d9..c3c8907 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1158,6 +1158,7 @@ static void commonDispatchDevice(WacomCommonPtr common, unsigned int channel,
 			 */
 			if (common->wcmTouchDevice->oldProximity)
 			{
+				common->wcmGestureMode = 0;
 				wcmSoftOutEvent(common->wcmTouchDevice->pInfo);
 				return;
 			}
-- 
1.7.4.1

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to