summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-10-25 11:16:22 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-10-26 06:34:20 +1000
commita22a3abb175b42ec68f75e37c6f9d1f72789b4de (patch)
tree5765e84a54627a05b3622d12d699327141b9ba8a
parent97299d3cea57f0541736aeaf8423e1f8663b4d3f (diff)
ABI 12 requires per-valuator modes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/mouse.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index fb9ccc8..c7103ff 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -1536,14 +1536,22 @@ MouseProc(DeviceIntPtr device, int what)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[0],
#endif
- -1, -1, 1, 0, 1);
+ -1, -1, 1, 0, 1
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
+ , Relative
+#endif
+ );
xf86InitValuatorDefaults(device, 0);
/* Y valuator */
xf86InitValuatorAxisStruct(device, 1,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[1],
#endif
- -1, -1, 1, 0, 1);
+ -1, -1, 1, 0, 1
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
+ , Relative
+#endif
+ );
xf86InitValuatorDefaults(device, 1);
#ifdef EXTMOUSEDEBUG