~ob/slock

b95ee111c7625375716e848ec81af2f57ca35b02 — David Phillips 6 years ago 0edbd2e
Don't change to failure colour on success
1 files changed, 1 insertions(+), 1 deletions(-)

M slock.c
M slock.c => slock.c +1 -1
@@ 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);