[PATCH libXi] Don't use the protocol defines for 2.0 versioning.

Peter Hutterer peter.hutterer at who-t.net
Thu Aug 11 21:25:50 PDT 2011


Otherwise we run into the old problem again: recompiling libXi against
newer inputproto headers will appear to change the version support,
potentially causing errors or other misbehaviours.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/XExtInt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/XExtInt.c b/src/XExtInt.c
index 32df6f9..86a780e 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -270,7 +270,7 @@ 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, 2, 0}
 };
 
 /***********************************************************************
-- 
1.7.6



More information about the xorg-devel mailing list