diff options
-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); } |