[PATCH libXi 2/4] Support XI 2.1 internally
Peter Hutterer
peter.hutterer at who-t.net
Thu Jun 2 00:13:32 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>
---
src/XExtInt.c | 4 +++-
src/XIint.h | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 32df6f9..1d28c6a 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -270,7 +270,9 @@ static XExtensionVersion versions[] = { {XI_Absent, 0, 0},
XI_Add_DevicePresenceNotify_Minor},
{XI_Present, XI_Add_DeviceProperties_Major,
XI_Add_DeviceProperties_Minor},
-{XI_Present, XI_2_Major, XI_2_Minor}
+{XI_Present, XI_2_Major, XI_2_Minor},
+/* XI 2.x versions are numbered, not named */
+{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.5.1
More information about the xorg-devel
mailing list