summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Srb <msrb@suse.com>2014-11-01 20:00:54 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2014-11-03 15:28:36 +1000
commitf699770e7c92da1dbf16892fde83438f0b79c979 (patch)
treeda1486bc42d16298253635826d9c8c46c6351c83
parentdc1f8c6ec1ba8135afa185c8e8360c1ed90bf96c (diff)
XIGetClientPointer: Return False on error.
Not NoSuchExtension which is 1 = True! Signed-off-by: Michal Srb <msrb@suse.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/XGetCPtr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XGetCPtr.c b/src/XGetCPtr.c
index a6a44b7..59a27d3 100644
--- a/src/XGetCPtr.c
+++ b/src/XGetCPtr.c
@@ -49,7 +49,7 @@ XIGetClientPointer(Display* dpy, Window win, int *deviceid)
LockDisplay(dpy);
if (_XiCheckExtInit(dpy, Dont_Check, info) == -1)
- return (NoSuchExtension);
+ return False;
GetReq(XIGetClientPointer, req);
req->reqType = info->codes->major_opcode;