aboutsummaryrefslogtreecommitdiff
path: root/src/emuMB.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-07-21 13:10:06 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2008-07-21 13:10:11 +0930
commit5d13259a5ddab31dbb2158975c8ccbb1f3c99046 (patch)
tree7b7a9e71660f101a6268fb6d2bbc03abd581e1d7 /src/emuMB.c
parentFill up the version info (diff)
downloadxf86-input-evdev-5d13259a5ddab31dbb2158975c8ccbb1f3c99046.tar.gz
xf86-input-evdev-5d13259a5ddab31dbb2158975c8ccbb1f3c99046.tar.bz2
xf86-input-evdev-5d13259a5ddab31dbb2158975c8ccbb1f3c99046.zip
Guard property changes against ABI_XINPUT < 3.
Diffstat (limited to 'src/emuMB.c')
-rw-r--r--src/emuMB.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emuMB.c b/src/emuMB.c
index c2f4327..07d8989 100644
--- a/src/emuMB.c
+++ b/src/emuMB.c
@@ -319,12 +319,14 @@ EvdevMBEmuPreInit(InputInfoPtr pInfo)
EvdevMBEmuWakeupHandler,
(pointer)pInfo);
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
XIChangeDeviceProperty(pInfo->dev, prop_mbemu, XA_INTEGER, 8,
PropModeReplace, 1, &pEvdev->emulateMB.enabled,
TRUE, FALSE, FALSE);
XIChangeDeviceProperty(pInfo->dev, prop_mbtimeout, XA_INTEGER, 16,
PropModeReplace, 1, &pEvdev->emulateMB.timeout,
TRUE, FALSE, FALSE);
+#endif
}
void