[hackers] [slock] applied Ryan Sorensen bugfix which allows slock to acquire the keyboard grab asynchroneously

From: <arg_AT_suckless.org>
Date: Tue Nov 13 18:16:39 2007

changeset: 26:00b6d11ae0b6
tag: tip
user: arg_AT_suckless.org
date: Tue Nov 13 18:16:18 2007 +0100
summary: applied Ryan Sorensen bugfix which allows slock to acquire the keyboard grab asynchroneously

diff -r 38a69d728e64 -r 00b6d11ae0b6 slock.c
--- a/slock.c Fri Apr 13 11:48:17 2007 +0200
+++ b/slock.c Tue Nov 13 18:16:18 2007 +0100
@@ -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);
         }
Received on Tue Nov 13 2007 - 18:16:39 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:46 UTC