Introduction
Introduction Statistics Contact Development Disclaimer Help
increasing for loops are idiomatic - slock - simple X display locker utility
git clone git://git.suckless.org/slock
Log
Files
Refs
README
LICENSE
---
commit a55594fdd69fcfcc10b8c9624d5aba298969d713
parent 03a87179919eebab7d38c548e3ff8e2911512468
Author: Markus Teich <[email protected]>
Date: Fri, 2 Sep 2016 11:49:02 +0200
increasing for loops are idiomatic
Diffstat:
M slock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/slock.c b/slock.c
@@ -274,7 +274,7 @@ lockscreen(Display *dpy, int screen)
XDefineCursor(dpy, lock->win, invisible);
/* Try to grab mouse pointer *and* keyboard for 600ms, else fail the l…
- for (i = 6, ptgrab = kbgrab = -1; i; --i) {
+ for (i = 0, ptgrab = kbgrab = -1; i < 6; i++) {
if (ptgrab != GrabSuccess) {
ptgrab = XGrabPointer(dpy, lock->root, False,
ButtonPressMask | ButtonReleaseMask |
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.