summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-26 22:15:35 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-26 22:15:35 +0930
commit4c3420534d0f62e37ba251c68ac65e88f9c5b9b9 (patch)
tree63f2e1fc437b68073681ead8e49ad16503b41e9d
parent2ec700990edd4bd77973de16ab2b40e754dee7f1 (diff)
Check for XINPUT ABI 3.
-rw-r--r--src/xf86MuTouch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c
index 0795e35..8f7b54e 100644
--- a/src/xf86MuTouch.c
+++ b/src/xf86MuTouch.c
@@ -1174,7 +1174,10 @@ xf86MuTControl(DeviceIntPtr dev,
* max and min values scaled from the approximate size of the
* screen to fit one meter.
*/
- if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents,
+ if (InitValuatorClassDeviceStruct(dev, 2,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ xf86GetMotionEvents,
+#endif
local->history_size, Absolute) == FALSE) {
ErrorF("Unable to allocate ValuatorClassDeviceStruct\n");
return !Success;