_XIPassiveGrabDevice, which is called by alle the passive grab functions, 
wrongly returns an error when it shouldn't.
The attached patch adds the missing "not" to properly test the error 
condition of _XReply.
--- src/XIPassiveGrab.c	2011-01-07 19:43:44.000000000 +0100
+++ src/XIPassiveGrab.c	2011-01-07 19:43:51.000000000 +0100
@@ -73,7 +73,7 @@ _XIPassiveGrabDevice(Display* dpy, int d
 
     free(buff);
 
-    if (_XReply(dpy, (xReply *)&reply, 0, xTrue))
+    if (!_XReply(dpy, (xReply *)&reply, 0, xTrue))
     {
 	UnlockDisplay(dpy);
 	SyncHandle();

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to