From: Chris Bagwell <ch...@cnpbagwell.com>

Up until recent commits there was an if() statement inside
reset function which prevented window being reset while
in proximity.  That got removed which caused a bug were
sample size was always size of 1.

Remove the blind reset call and rely on existing conditional call
while entering proximity.

Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com>
---
 src/wcmCommon.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 8050600..ff66676 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -953,14 +953,12 @@ void wcmEvent(WacomCommonPtr common, unsigned int channel,
 
        /* don't move the cursor if in gesture mode */
        if (common->wcmGestureMode)
-               goto ret;
+               return;
 
        /* For touch, only first finger moves the cursor */
        if ((ds.device_type == TOUCH_ID && common->wcmTouch && !channel) ||
            (ds.device_type != TOUCH_ID))
                commonDispatchDevice(common,channel,pChannel, suppress);
-ret:
-       wcmResetSampleCounter(pChannel);
 }
 
 static int idtotype(int id)
-- 
1.7.3.2


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to