If we're going out of proximity, don't post an event.
Signed-off-by: Peter Hutterer <[email protected]>
---
src/wcmCommon.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 0b89c0c..93837f7 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -402,7 +402,8 @@ static int getWheelButton(InputInfoPtr pInfo, const
WacomDeviceState* ds,
}
/* emulate events for absolute wheel when it is a touch ring (on pad) */
- if ( (ds->abswheel != priv->oldWheel) && IsPad(priv) )
+ if ( (ds->abswheel != priv->oldWheel) && IsPad(priv) &&
+ (priv->oldProximity == ds->proximity))
{
value = priv->oldWheel - ds->abswheel;
fakeButton = (value > 0) ? priv->wheelup : priv->wheeldn;
--
1.7.3.4
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel