A bit easier to read, 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 8fbc0f5..0cd231f 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -802,10 +802,10 @@ void wcmSendEvents(InputInfoPtr pInfo, const 
WacomDeviceState* ds)
                priv->oldButtons = 0;
        }
 
-       if (type != PAD_ID)
-               wcmSendNonPadEvents(pInfo, ds, x, y, z, v3, v5, v5);
-       else
+       if (type == PAD_ID)
                wcmSendPadEvents(pInfo, ds, v3, v4, v5);
+       else
+               wcmSendNonPadEvents(pInfo, ds, x, y, z, v3, v5, v5);
 
        priv->oldProximity = ds->proximity;
        priv->old_device_id = id;
-- 
1.7.3.3


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to