Rotation doesn't do a lot on a device without usable axes
Signed-off-by: Peter Hutterer <[email protected]>
---
src/wcmXCommand.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index 724a9ac..76bf857 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -176,7 +176,9 @@ void InitWcmDeviceProperties(InputInfoPtr pInfo)
}
values[0] = common->wcmRotate;
- prop_rotation = InitWcmAtom(pInfo->dev, WACOM_PROP_ROTATION,
XA_INTEGER, 8, 1, values);
+ if (!IsPad(priv)) {
+ prop_rotation = InitWcmAtom(pInfo->dev, WACOM_PROP_ROTATION,
XA_INTEGER, 8, 1, values);
+ }
if (IsPen(priv) || IsTouch(priv)) {
values[0] = priv->nPressCtrl[0];
--
1.7.10.2
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel