summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2011-06-23 10:58:43 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-25 09:50:32 +1000
commit299a44cd2035e84859b9d6c84854064326f8d124 (patch)
tree3db04f83efeae5ca550b5bfcaf2b1cb6cbc78484
parent05fb9b5f248aacb121997f02d7a6e7cbbfb5ed1c (diff)
Bump minimum xorg-server requirement to 1.7
This means we can also drop support for pre-ABI v7. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--configure.ac2
-rw-r--r--src/synaptics.c28
2 files changed, 6 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac
index bb4b66c..bb95403 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,7 @@ m4_ifndef([XORG_DRIVER_CHECK_EXT],
XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
# Obtain compiler/linker options for the Synaptics driver dependencies
-PKG_CHECK_MODULES(XORG, [xorg-server >= 1.6] xproto inputproto $REQUIRED_MODULES)
+PKG_CHECK_MODULES(XORG, [xorg-server >= 1.7] xproto inputproto $REQUIRED_MODULES)
# X Server SDK location is required to install Synaptics header files
# This location is also relayed in the xorg-synaptics.pc file
diff --git a/src/synaptics.c b/src/synaptics.c
index 362c18d..3aff1e2 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -70,11 +70,9 @@
#include <xf86Xinput.h>
#include <exevents.h>
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
#include <X11/Xatom.h>
#include <xserver-properties.h>
#include <ptrveloc.h>
-#endif
#include "synaptics.h"
#include "synapticsstr.h"
@@ -896,7 +894,6 @@ DeviceClose(DeviceIntPtr dev)
return RetValue;
}
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
static void InitAxesLabels(Atom *labels, int nlabels)
{
memset(labels, 0, nlabels * sizeof(Atom));
@@ -934,7 +931,6 @@ static void InitButtonLabels(Atom *labels, int nlabels)
break;
}
}
-#endif
static Bool
DeviceInit(DeviceIntPtr dev)
@@ -946,14 +942,12 @@ DeviceInit(DeviceIntPtr dev)
unsigned char map[SYN_MAX_BUTTONS + 1];
int i;
int min, max;
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
Atom btn_labels[SYN_MAX_BUTTONS] = { 0 };
Atom axes_labels[2] = { 0 };
DeviceVelocityPtr pVel;
InitAxesLabels(axes_labels, 2);
InitButtonLabels(btn_labels, SYN_MAX_BUTTONS);
-#endif
DBG(3, "Synaptics DeviceInit called\n");
@@ -964,22 +958,17 @@ DeviceInit(DeviceIntPtr dev)
InitPointerDeviceStruct((DevicePtr)dev, map,
SYN_MAX_BUTTONS,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
btn_labels,
-#endif
SynapticsCtrl,
- GetMotionHistorySize(), 2
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
- , axes_labels
-#endif
- );
+ GetMotionHistorySize(),
+ 2,
+ axes_labels);
/*
* setup dix acceleration to match legacy synaptics settings, and
* etablish a device-specific profile to do stuff like pressure-related
* acceleration.
*/
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
if (NULL != (pVel = GetDevicePredictableAccelData(dev))) {
SetDeviceSpecificAccelerationProfile(pVel,
SynapticsAccelerationProfile);
@@ -1015,7 +1004,6 @@ DeviceInit(DeviceIntPtr dev)
XIChangeDeviceProperty(dev, prop, XA_INTEGER, 32,
PropModeReplace, 1, &i, FALSE);
}
-#endif
/* X valuator */
if (priv->minx < priv->maxx)
@@ -1028,10 +1016,7 @@ DeviceInit(DeviceIntPtr dev)
max = -1;
}
- xf86InitValuatorAxisStruct(dev, 0,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
- axes_labels[0],
-#endif
+ xf86InitValuatorAxisStruct(dev, 0, axes_labels[0],
min, max, priv->resx * 1000, 0, priv->resx * 1000
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
, Relative
@@ -1050,10 +1035,7 @@ DeviceInit(DeviceIntPtr dev)
max = -1;
}
- xf86InitValuatorAxisStruct(dev, 1,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
- axes_labels[1],
-#endif
+ xf86InitValuatorAxisStruct(dev, 1, axes_labels[1],
min, max, priv->resy * 1000, 0, priv->resy * 1000
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
, Relative