mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 14:05:51 +02:00
applied Ryan Sorensen bugfix which allows slock to acquire the keyboard grab asynchroneously
This commit is contained in:
parent
20e294a66f
commit
1fd4e7b23e
2
slock.c
2
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user