summaryrefslogtreecommitdiff
path: root/src/XIPassiveGrab.c
diff options
context:
space:
mode:
authorPhilipp Reh <sefi@s-e-f-i.de>2011-01-10 17:35:57 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2011-01-11 08:08:06 +1000
commita5961a8459614fcaa801a47cda07d3ee8246b16f (patch)
treea442d8bf3c76c16f48e4bd0f0d4de779ebd186e4 /src/XIPassiveGrab.c
parent408db9e86a92c897390129ef27a804d7cf6ba6fb (diff)
Fix passive grabs.
_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. Signed-off-by: Philipp Reh <sefi@s-e-f-i.de> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XIPassiveGrab.c')
-rw-r--r--src/XIPassiveGrab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIPassiveGrab.c b/src/XIPassiveGrab.c
index 8953013..98eb806 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, xTrue))
{
UnlockDisplay(dpy);
SyncHandle();