diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-02 13:23:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-09-17 06:40:32 +1000 |
commit | 00382417331d0b38373796fd31757be9fd3e9971 (patch) | |
tree | afe0ffffa1f3069251a50b00b5c5f26bd6631a9b /src | |
parent | 942dd55eb370e0acea3184de78619766a09f7670 (diff) |
Support XI 2.1 internally
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@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 3 | ||||
-rw-r--r-- | 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 *); |