diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-04 18:22:56 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-04 18:22:56 +0930 |
commit | 4509ec1daf8a03b261c1fa8aa48b5def3f336aed (patch) | |
tree | 091ba3940419146578492cd6639000b951254283 /src/emuWheel.c | |
parent | a205dfc091e6d7c67e3fa1421fe8a43f5ed40b00 (diff) |
Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.
Diffstat (limited to 'src/emuWheel.c')
-rw-r--r-- | src/emuWheel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c index a436c49..e503aaa 100644 --- a/src/emuWheel.c +++ b/src/emuWheel.c @@ -43,7 +43,7 @@ #define WHEEL_NOT_CONFIGURED 0 -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES static const char *propname_wheel_emu = "Wheel Emulation"; static const char *propname_wheel_xmap = "Wheel Emulation X Axis"; static const char *propname_wheel_ymap = "Wheel Emulation Y Axis"; @@ -316,7 +316,7 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo) "EmulateWheelTimeout: %d\n", pInfo->name, pEvdev->emulateWheel.button, inertia, timeout); -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES XIChangeDeviceProperty(pInfo->dev, prop_wheel_emu, XA_INTEGER, 8, PropModeReplace, 1, &pEvdev->emulateWheel.enabled, TRUE, FALSE, FALSE); @@ -348,7 +348,7 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo) #endif } -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES void EvdevWheelEmuInitProperty(DeviceIntPtr dev) { |