slock

simple X display locker utility

git clone https://9o.is/git/slock.git

commit d253f51064ad149b9fd55cf3a0673883e344518c
parent 69e9ad7df7dc48868079dffade632cf1f6526eef
Author: David Phillips <dbphillipsnz@gmail.com>
Date:   Thu, 27 Aug 2015 06:16:25 +0200

Don't change to failure colour on success

Diffstat:
Mslock.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slock.c b/slock.c @@ -187,7 +187,7 @@ readpw(Display *dpy, const char *pws) break; } color = len ? INPUT : (failure || failonclear ? FAILED : INIT); - if (oldc != color) { + if (running && oldc != color) { for (screen = 0; screen < nscreens; screen++) { XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]); XClearWindow(dpy, locks[screen]->win);