Introduction
Introduction Statistics Contact Development Disclaimer Help
made slock more aggressive, DenisG please recheck - slock - simple X display lo…
git clone git://git.suckless.org/slock
Log
Files
Refs
README
LICENSE
---
commit ae8cce24d3eb590c3cc810eb8487296ee1db0718
parent 663fdb326a573ed8e4a5e47a6d8459b2f479b75f
Author: Anselm R. Garbe <[email protected]>
Date: Wed, 21 Feb 2007 21:25:53 +0100
made slock more aggressive, DenisG please recheck
Diffstat:
M config.mk | 2 +-
M slock.c | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/config.mk b/config.mk
@@ -1,5 +1,5 @@
# slock version
-VERSION = 0.4
+VERSION = 0.5
# Customize below to fit your system
diff --git a/slock.c b/slock.c
@@ -86,13 +86,14 @@ main(int argc, char **argv) {
pmap = XCreateBitmapFromData(dpy, w, curs, 8, 8);
invisible = XCreatePixmapCursor(dpy, pmap, pmap, &black, &black, 0, 0);
XDefineCursor(dpy, w, invisible);
- running = XGrabPointer(dpy, RootWindow(dpy, screen), False,
+ for(len = 1000; len && (XGrabPointer(dpy, RootWindow(dpy, screen), Fal…
ButtonPressMask | ButtonReleaseMask | PointerMotionMas…
- GrabModeAsync, GrabModeSync, None, invisible, CurrentT…
- len = 10;
- for(len = 10; len && (XGrabKeyboard(dpy, RootWindow(dpy, screen), True…
+ GrabModeAsync, GrabModeSync, None, invisible, CurrentT…
+ usleep(1000);
+ running = running && (len > 0);
+ for(len = 1000; len && (XGrabKeyboard(dpy, RootWindow(dpy, screen), Tr…
GrabModeAsync, CurrentTime) != GrabSuccess); len--)
- usleep(10000);
+ usleep(1000);
running = running && (len > 0);
len = 0;
XMapRaised(dpy, w);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.