diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-08-27 06:16:25 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2015-08-27 06:16:25 +0200 |
commit | b95ee111c7625375716e848ec81af2f57ca35b02 (patch) | |
tree | 390c51f37cfbe207be0931d3d842e8c6a949aea8 | |
parent | 0edbd2e0164a8c6cbad415e38083469041f29996 (diff) |
Don't change to failure colour on success
-rw-r--r-- | slock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -187,7 +187,7 @@ readpw(Display *dpy, const char *pws) | |||
187 | break; | 187 | break; |
188 | } | 188 | } |
189 | color = len ? INPUT : (failure || failonclear ? FAILED : INIT); | 189 | color = len ? INPUT : (failure || failonclear ? FAILED : INIT); |
190 | if (oldc != color) { | 190 | if (running && oldc != color) { |
191 | for (screen = 0; screen < nscreens; screen++) { | 191 | for (screen = 0; screen < nscreens; screen++) { |
192 | XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]); | 192 | XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]); |
193 | XClearWindow(dpy, locks[screen]->win); | 193 | XClearWindow(dpy, locks[screen]->win); |