diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-26 22:11:25 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-27 11:57:36 +0930 |
commit | 7f90f6a6266b896da41be0f9b04621556c2e083d (patch) | |
tree | 4d23afaefb3be5bfd5c5448f0359f31a1d74e2a9 | |
parent | c616070ccdafd1dede1eb263bb480c7cf6cf6145 (diff) |
Check for XINPUT ABI 3.
-rw-r--r-- | src/xf86MagicTouch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xf86MagicTouch.c b/src/xf86MagicTouch.c index 1a784ff..9541318 100644 --- a/src/xf86MagicTouch.c +++ b/src/xf86MagicTouch.c @@ -574,7 +574,11 @@ xf86MagicControl(DeviceIntPtr dev, /* * Il movimento viene eseguito su due assi in coordinate assolute. */ - if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents, local->history_size, Absolute) == FALSE ) + if (InitValuatorClassDeviceStruct(dev, 2, +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 + xf86GetMotionEvents, +#endif + local->history_size, Absolute) == FALSE ) { ErrorF("MagicTouch ValuatorClassDeviceStruct: ERRORE\n"); return !Success; |