From: Chris Bagwell <ch...@cnpbagwell.com> wcmRotateAndScaleCoordinates() uses these values to scale values based on initialized. The change to use -1..-1 caused it to scale to 0 value always and make cursor not move.
This is probably a revert more then bug fix because it seems standard behavior to init relative to -1..-1 based on my xinput output. But it needs to be reverted until something is done to wcmRotateAndScaleCoordinates(). Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com> --- src/xf86Wacom.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c index 4a07191..5be8409 100644 --- a/src/xf86Wacom.c +++ b/src/xf86Wacom.c @@ -280,12 +280,16 @@ wcmInitAxes(DeviceIntPtr pWcm) /* first valuator: x */ label = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_X); - min = max = -1; if (is_absolute(pInfo)) { min = priv->topX; max = priv->sizeX + priv->topX; } + else + { + min = 0; + max = priv->maxX; + } min_res = 0; max_res = priv->resolX; res = priv->resolX; @@ -303,12 +307,16 @@ wcmInitAxes(DeviceIntPtr pWcm) /* second valuator: y */ label = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_Y); - min = max = -1; if (is_absolute(pInfo)) { min = priv->topY; max = priv->sizeY + priv->topY; } + else + { + min = 0; + max = priv->maxY; + } min_res = 0; max_res = priv->resolY; res = priv->resolY; -- 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 Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel