From eee7ef7cf2a1648f94e749e82578a2c52c5a1f6b Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Wed, 30 Jan 2008 17:03:05 -0200 Subject: [PATCH] Don't call xf86AddLocalDevice and xf86XInputSetSendCoreEvents. Only call those functions if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0. --- src/elo.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/elo.c b/src/elo.c index f48590c..d7b1003 100644 --- a/src/elo.c +++ b/src/elo.c @@ -204,7 +204,9 @@ SetupProc( pointer module, local->private_flags = 0; local->history_size = xf86SetIntOption( merged, "HistorySize", 0 ); +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 xf86AddLocalDevice (local, merged); +#endif /* prepare to process touch packets */ EloNewPacket (priv); @@ -488,11 +490,13 @@ SwitchMode( ClientPtr client, priv->reporting_mode = mode; return (Success); } +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 else if ((mode == SendCoreEvents) || (mode == DontSendCoreEvents)) { xf86XInputSetSendCoreEvents (local, (mode == SendCoreEvents)); return (Success); } +#endif else return (!Success); } -- 1.5.3.2