[PATCH libXi 4/5] Support XI 2.1 internally

Peter Hutterer peter.hutterer at who-t.net
Sun Aug 21 22:35:21 PDT 2011


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 <peter.hutterer at who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
---
 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



More information about the xorg-devel mailing list