[PATCH synaptics 1/5] Remove the need for XI86_CONFIGURED on input-ABI 12

Peter Hutterer peter.hutterer at who-t.net
Mon Jan 3 17:44:41 PST 2011


Just move the assignment into an already if GET_ABI_MAJOR() block.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/synaptics.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/synaptics.c b/src/synaptics.c
index f64a081..872930c 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -80,12 +80,6 @@
 #include <ptrveloc.h>
 #endif
 
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
-/* removed from server, purge when dropping support for server 1.10 */
-#define XI86_CONFIGURED         0x02
-#define XI86_SEND_DRAG_EVENTS   0x08
-#endif
-
 typedef enum {
     NO_EDGE = 0,
     BOTTOM_EDGE = 1,
@@ -676,6 +670,8 @@ SynapticsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
     if (NewSynapticsPreInit(drv, pInfo, flags) != Success)
         return NULL;
 
+    pInfo->flags |= XI86_CONFIGURED;
+
     return pInfo;
 }
 
@@ -752,7 +748,6 @@ SynapticsPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
     }
 
     xf86ProcessCommonOptions(pInfo, pInfo->options);
-    pInfo->flags |= XI86_CONFIGURED;
 
     if (pInfo->fd != -1) {
 	if (priv->comm.buffer) {
-- 
1.7.3.4



More information about the xorg-devel mailing list