diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-02 11:49:02 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-02 11:49:02 +0200 |
commit | a55594fdd69fcfcc10b8c9624d5aba298969d713 (patch) | |
tree | 5acc3228563b71a2c412c3ca691699b7aeb466f5 /slock.c | |
parent | 03a87179919eebab7d38c548e3ff8e2911512468 (diff) | |
download | slock-a55594fdd69fcfcc10b8c9624d5aba298969d713.tar.gz slock-a55594fdd69fcfcc10b8c9624d5aba298969d713.tar.xz |
increasing for loops are idiomatic
Diffstat (limited to 'slock.c')
-rw-r--r-- | slock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 lock */ - 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 | |