Add the required constants to pretend to support XI 2.1. Having named constants for 2.1 seems a bit pointless, so let's just use the numbers directly.
Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Jeremy Huddleston <[email protected]> --- src/XExtInt.c | 3 ++- src/XIint.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/XExtInt.c b/src/XExtInt.c index 9e1ad19..870dc0c 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -270,7 +270,8 @@ static XExtensionVersion versions[] = { {XI_Absent, 0, 0}, XI_Add_DevicePresenceNotify_Minor}, {XI_Present, XI_Add_DeviceProperties_Major, XI_Add_DeviceProperties_Minor}, -{XI_Present, 2, 0} +{XI_Present, 2, 0}, +{XI_Present, 2, 1} }; /*********************************************************************** diff --git a/src/XIint.h b/src/XIint.h index 8e9cf72..41d99b3 100644 --- a/src/XIint.h +++ b/src/XIint.h @@ -20,7 +20,7 @@ #define XInput_Add_DeviceProperties 6 #define XInput_2_0 7 #endif - +#define XInput_2_1 8 extern XExtDisplayInfo *XInput_find_display(Display *); -- 1.7.6 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
