applied Ryan Sorensen bugfix which allows slock to acquire the keyboard grab asynchro...
authorarg@suckless.org <unknown>
Tue, 13 Nov 2007 17:16:18 +0000 (18:16 +0100)
committerarg@suckless.org <unknown>
Tue, 13 Nov 2007 17:16:18 +0000 (18:16 +0100)
slock.c

diff --git a/slock.c b/slock.c
index 866df90..daa3cf7 100644 (file)
--- a/slock.c
+++ b/slock.c
@@ -87,7 +87,7 @@ main(int argc, char **argv) {
        XMapRaised(dpy, w);
        for(len = 1000; len; len--) {
                if(XGrabPointer(dpy, root, False, ButtonPressMask | ButtonReleaseMask | PointerMotionMask,
-                       GrabModeAsync, GrabModeSync, None, invisible, CurrentTime) == GrabSuccess)
+                       GrabModeAsync, GrabModeAsync, None, invisible, CurrentTime) == GrabSuccess)
                        break;
                usleep(1000);
        }