[PATCH mouse 2/3] ABI 12 requires per-valuator modes.

Peter Hutterer peter.hutterer at who-t.net
Tue Nov 16 16:10:04 PST 2010


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/mouse.c |   12 ++++++++++--
 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
-- 
1.7.3.2



More information about the xorg-devel mailing list