File U_XIGetClientPointer-Return-False-on-error.patch of Package libXi.3538

From: Michal Srb <msrb@suse.com>
Date: Sat Nov 1 20:00:54 2014 +0200
Subject: [PATCH]XIGetClientPointer: Return False on error.
Patch-mainline: Upstream
Git-commit: f699770e7c92da1dbf16892fde83438f0b79c979
Git-repo: git://anongit.freedesktop.org/git/xorg/lib/libXi
References: bnc#940529
Signed-off-by: Egbert Eich <eich@suse.com>

Not NoSuchExtension which is 1 = True!

Signed-off-by: Michal Srb <msrb@suse.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
 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;
openSUSE Build Service is sponsored by