No functional changes.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmCommon.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 3a8f07b..2fdd2c8 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1123,7 +1123,6 @@ static void commonDispatchDevice(WacomCommonPtr common, 
unsigned int channel,
        WacomDeviceState* ds = &pChannel->valid.states[0];
        WacomDevicePtr priv = NULL;
        WacomDeviceState filtered;
-       int button;
 
        /* if something went wrong, figure out device type by device id */
        if (!ds->device_type && ds->proximity)
@@ -1158,8 +1157,6 @@ static void commonDispatchDevice(WacomCommonPtr common, 
unsigned int channel,
        filtered = pChannel->valid.state;
 
        /* Device transformations come first */
-       /* button 1 Threshold test */
-       button = 1;
        priv = pDev->private;
 
        if (IsUSBDevice(common))
@@ -1198,8 +1195,11 @@ static void commonDispatchDevice(WacomCommonPtr common, 
unsigned int channel,
 
        if (IsStylus(priv) || IsEraser(priv))
        {
+               int button = 1;
+
                filtered.pressure = normalizePressure(priv, &filtered);
 
+               /* button 1 Threshold test */
                /* set button1 (left click) on/off */
                if (filtered.pressure < common->wcmThreshold)
                {
-- 
1.7.3.4


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to