summaryrefslogtreecommitdiff
path: root/src/XExtInt.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-31 21:29:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-02 13:25:49 +1000
commit2174d35d5cdc475699be968a0c1b1aa82566171f (patch)
tree9bce3101f63becc0255837ce1d23abbaf15d5d54 /src/XExtInt.c
parentb1dedc1293a854360d44856cd603d339ce95c777 (diff)
Return BadRequest from XIQueryVersion if XI2 isn't supported.
XIQueryVersion (like all other calls) makes sure XGetExtensionVersion is called beforehand anyway. So if that doesn't match 2.0 or higher, return BadRquest before issuing the real request (which would trigger a BadRequest error). This way, clients can use XIQueryVersion without having to set up the error handler. XIQueryVersion is now guaranteed to return the server-supported version. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XExtInt.c')
-rw-r--r--src/XExtInt.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index a0cc3b0..b2890f9 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -140,12 +140,6 @@ wireToPropertyEvent(xXIPropertyEvent *in, XIPropertyEvent *out);
static /* const */ XEvent emptyevent;
-typedef struct _XInputData
-{
- XEvent data;
- XExtensionVersion *vers;
-} XInputData;
-
static /* const */ XExtensionHooks xinput_extension_hooks = {
NULL, /* create_gc */
NULL, /* copy_gc */