[PATCH libXi 4/7] XIGetClientPointer: Return False on error.

Michal Srb msrb at suse.com
Sat Nov 1 11:00:54 PDT 2014


Not NoSuchExtension which is 1 = True!

Signed-off-by: Michal Srb <msrb at suse.com>
---
 src/XGetCPtr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.8.4.5



More information about the xorg-devel mailing list