summaryrefslogtreecommitdiff
path: root/slock.c
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-08-27 06:16:25 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2015-08-27 06:16:25 +0200
commitb95ee111c7625375716e848ec81af2f57ca35b02 (patch)
tree390c51f37cfbe207be0931d3d842e8c6a949aea8 /slock.c
parent0edbd2e0164a8c6cbad415e38083469041f29996 (diff)
downloadslock-b95ee111c7625375716e848ec81af2f57ca35b02.tar.gz
slock-b95ee111c7625375716e848ec81af2f57ca35b02.tar.xz
Don't change to failure colour on success
Diffstat (limited to 'slock.c')
-rw-r--r--slock.c2
1 files changed, 1 insertions, 1 deletions
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);