diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-01-30 17:37:28 -0200 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-01 13:12:39 +1030 |
commit | 600e029c61c012c7a7eb1075a805fbc01681962a (patch) | |
tree | 66be608e31d508e9e5e0c4764c714cde7b05b78c /src | |
parent | db7b7d03a7e9136badf994c218cd137b59a376c2 (diff) |
Don't call xf86XInputSetSendCoreEvents.
Only call that function if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/xf86PM.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xf86PM.c b/src/xf86PM.c index 0a6d1ad..612b68b 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -121,7 +121,9 @@ static const char *reqSymbols[] = { "xf86SetIntOption", "xf86SetStrOption", "xf86XInputSetScreen", +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 "xf86XInputSetSendCoreEvents", +#endif NULL }; @@ -786,11 +788,13 @@ SwitchMode (ClientPtr client, DeviceIntPtr dev, int mode) priv->reporting_mode = mode; return (Success); } +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 else if ((mode == SendCoreEvents) || (mode == DontSendCoreEvents)) { xf86XInputSetSendCoreEvents (pInfo, (mode == SendCoreEvents)); return (Success); } +#endif else return (!Success); } |