summaryrefslogtreecommitdiff
path: root/src/XWarpDvPtr.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/XWarpDvPtr.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/XWarpDvPtr.c')
-rw-r--r--src/XWarpDvPtr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/XWarpDvPtr.c b/src/XWarpDvPtr.c
index c13fc20..60188db 100644
--- a/src/XWarpDvPtr.c
+++ b/src/XWarpDvPtr.c
@@ -31,7 +31,6 @@ in this Software without prior written authorization from The Open Group.
*/
#include <stdint.h>
-#include <X11/extensions/XI.h>
#include <X11/extensions/XI2proto.h>
#include <X11/Xlibint.h>
#include <X11/extensions/XInput2.h>
@@ -55,7 +54,7 @@ XIWarpPointer(Display *dpy,
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(XIWarpPointer, req);