[PATCH synaptics] Input API 12 requires a valuator mode for each axis.
Peter Hutterer
peter.hutterer at who-t.net
Mon Oct 25 17:11:59 PDT 2010
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/synaptics.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index e6ee943..f64a081 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1051,7 +1051,11 @@ DeviceInit(DeviceIntPtr dev)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[0],
#endif
- min, max, priv->resx * 1000, 0, priv->resx * 1000);
+ min, max, priv->resx * 1000, 0, priv->resx * 1000
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
+ , Relative
+#endif
+ );
xf86InitValuatorDefaults(dev, 0);
/* Y valuator */
@@ -1069,7 +1073,11 @@ DeviceInit(DeviceIntPtr dev)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[1],
#endif
- min, max, priv->resy * 1000, 0, priv->resy * 1000);
+ min, max, priv->resy * 1000, 0, priv->resy * 1000
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
+ , Relative
+#endif
+ );
xf86InitValuatorDefaults(dev, 1);
if (!alloc_param_data(pInfo))
--
1.7.2.3
More information about the xorg-devel
mailing list