The mouse doesn't really have a pressure curve. And the pad doesn't either,
so no need for this property.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmXCommand.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index b8bdd92..08567bd 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -182,11 +182,13 @@ void InitWcmDeviceProperties(LocalDevicePtr local)
        values[0] = common->wcmRotate;
        prop_rotation = InitWcmAtom(local->dev, WACOM_PROP_ROTATION, 8, 1, 
values);
 
-       values[0] = 0;
-       values[1] = 0;
-       values[2] = 100;
-       values[3] = 100;
-       prop_pressurecurve = InitWcmAtom(local->dev, WACOM_PROP_PRESSURECURVE, 
32, 4, values);
+       if (IsStylus(priv) || IsEraser(priv)) {
+               values[0] = 0;
+               values[1] = 0;
+               values[2] = 100;
+               values[3] = 100;
+               prop_pressurecurve = InitWcmAtom(local->dev, 
WACOM_PROP_PRESSURECURVE, 32, 4, values);
+       }
 
        values[0] = common->tablet_id;
        values[1] = priv->old_serial;
-- 
1.6.6.1


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to