~kris/suckless

slock

1fd4e7b23e872c16902d222b6c870116c948903c — arg@suckless.org 18 years ago 20e294a
applied Ryan Sorensen bugfix which allows slock to acquire the keyboard grab asynchroneously
1 files changed, 1 insertions(+), 1 deletions(-)

M slock.c
M slock.c => slock.c +1 -1
@@ 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);
	}