[PATCH libXi] Don't discard extra data for passive grabs.

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 7 20:45:09 PST 2011


Failed modifier data was discarded, causing assertions inside xcb.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/XIPassiveGrab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/XIPassiveGrab.c b/src/XIPassiveGrab.c
index ada658f..feef74b 100644
--- a/src/XIPassiveGrab.c
+++ b/src/XIPassiveGrab.c
@@ -73,7 +73,7 @@ _XIPassiveGrabDevice(Display* dpy, int deviceid, int grabtype, int detail,
 
     free(buff);
 
-    if (!_XReply(dpy, (xReply *)&reply, 0, xTrue))
+    if (!_XReply(dpy, (xReply *)&reply, 0, xFalse))
     {
 	UnlockDisplay(dpy);
 	SyncHandle();
-- 
1.7.4



More information about the xorg-devel mailing list