From: David Phillips Date: Thu, 27 Aug 2015 04:16:25 +0000 (+0200) Subject: Don't change to failure colour on success X-Git-Url: https://git.armaanb.net/?p=slock.git;a=commitdiff_plain;h=b95ee111c7625375716e848ec81af2f57ca35b02 Don't change to failure colour on success --- diff --git a/slock.c b/slock.c index b3bee92..6be8f22 100644 --- 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);