Don't change to failure colour on success

This commit is contained in:
David Phillips 2015-08-27 06:16:25 +02:00 committed by Markus Teich
parent 0edbd2e016
commit b95ee111c7
1 changed files with 1 additions and 1 deletions

View File

@ -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);