summaryrefslogtreecommitdiff
path: root/src/XIHierarchy.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/XIHierarchy.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/XIHierarchy.c')
0 files changed, 0 insertions, 0 deletions