pinosaur
/
slock.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edbd2e
)
Don't change to failure colour on success
author
David Phillips
<dbphillipsnz@gmail.com>
Thu, 27 Aug 2015 04:16:25 +0000
(06:16 +0200)
committer
Markus Teich
<markus.teich@stusta.mhn.de>
Thu, 27 Aug 2015 04:16:25 +0000
(06:16 +0200)
slock.c
patch
|
blob
|
history
diff --git
a/slock.c
b/slock.c
index
b3bee92
..
6be8f22
100644
(file)
--- 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);