summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-01-30 17:03:05 -0200
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-02-01 13:03:54 +1030
commite807e5a88af379cad14331b787ed32a45553f8f3 (patch)
tree370b7d606a2cc321e6105948521a5b5f24be36fb /src
parentb243a4a8eaadbd7d5115e0a14c494c242b79da80 (diff)
Don't call xf86AddLocalDevice and xf86XInputSetSendCoreEvents.
Only call those functions if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0.
Diffstat (limited to 'src')
-rw-r--r--src/elo.c4
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);
}