summaryrefslogtreecommitdiff
path: root/src/XISelEv.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-01 09:54:03 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-02 13:25:44 +1000
commitb1dedc1293a854360d44856cd603d339ce95c777 (patch)
tree773d4b7e20f72bfe6b6cc504f2a90ffc766fcf14 /src/XISelEv.c
parent4d962ed1841f35aa255bbec89e37f396612cfd96 (diff)
Use Dont_Check for most XI2 requests.
If a client issues an XI2 request against a non-XI2 server it should generate a BadRequest error from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XISelEv.c')
-rw-r--r--src/XISelEv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XISelEv.c b/src/XISelEv.c
index d76861f..11eb4a2 100644
--- a/src/XISelEv.c
+++ b/src/XISelEv.c
@@ -52,7 +52,7 @@ XISelectEvents(Display* dpy, Window win, XIEventMask* masks, int num_masks)
XExtDisplayInfo *info = XInput_find_display(dpy);
LockDisplay(dpy);
- if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
+ if (_XiCheckExtInit(dpy, Dont_Check, info) == -1)
return (NoSuchExtension);
GetReq(XISelectEvents, req);
@@ -104,7 +104,7 @@ XIGetSelectedEvents(Display* dpy, Window win, int *num_masks_return)
XExtDisplayInfo *info = XInput_find_display(dpy);
LockDisplay(dpy);
- if (_XiCheckExtInit(dpy, XI_2_Major, info) == -1)
+ if (_XiCheckExtInit(dpy, Dont_Check, info) == -1)
{
*num_masks_return = -1;
return NULL;