Signed-off-by: Peter Hutterer <[email protected]>
---
src/wcmCommon.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 5e1f655..816b15d 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -505,7 +505,7 @@ static void sendCommonEvents(InputInfoPtr pInfo, const
WacomDeviceState* ds,
wcmSendButtons(pInfo,buttons, first_val, num_vals, valuators);
/* emulate wheel/strip events when defined */
- if ( ds->relwheel || ds->abswheel ||
+ if ( ds->relwheel || (ds->abswheel != priv->oldWheel) ||
( (ds->stripx - priv->oldStripX) && ds->stripx &&
priv->oldStripX) ||
((ds->stripy - priv->oldStripY) && ds->stripy &&
priv->oldStripY) )
sendWheelStripEvents(pInfo, ds, first_val, num_vals, valuators);
@@ -605,7 +605,8 @@ wcmSendPadEvents(InputInfoPtr pInfo, const
WacomDeviceState* ds,
for (i = 0; i < num_vals; i++)
if (valuators[i])
break;
- if (i < num_vals || ds->buttons || ds->relwheel)
+ if (i < num_vals || ds->buttons || ds->relwheel ||
+ (ds->abswheel != priv->oldWheel))
{
sendCommonEvents(pInfo, ds, first_val, num_vals, valuators);
--
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