diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-31 21:29:47 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-02 13:25:49 +1000 |
commit | 2174d35d5cdc475699be968a0c1b1aa82566171f (patch) | |
tree | 9bce3101f63becc0255837ce1d23abbaf15d5d54 /src/XIint.h | |
parent | b1dedc1293a854360d44856cd603d339ce95c777 (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/XIint.h')
-rw-r--r-- | src/XIint.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/XIint.h b/src/XIint.h index 9cf6bc4..63e33f1 100644 --- a/src/XIint.h +++ b/src/XIint.h @@ -23,4 +23,10 @@ extern Status _XiEventToWire( register int * /* count */ ); +typedef struct _XInputData +{ + XEvent data; + XExtensionVersion *vers; +} XInputData; + #endif |