diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-01-30 17:03:05 -0200 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-01 13:03:54 +1030 |
commit | e807e5a88af379cad14331b787ed32a45553f8f3 (patch) | |
tree | 370b7d606a2cc321e6105948521a5b5f24be36fb /src | |
parent | b243a4a8eaadbd7d5115e0a14c494c242b79da80 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |