Signed-off-by: Peter Hutterer <[email protected]>
---
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
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel