mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 14:05:51 +02:00
Don't change to failure colour on success
This commit is contained in:
parent
0edbd2e016
commit
b95ee111c7
2
slock.c
2
slock.c
@ -187,7 +187,7 @@ readpw(Display *dpy, const char *pws)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
color = len ? INPUT : (failure || failonclear ? FAILED : INIT);
|
color = len ? INPUT : (failure || failonclear ? FAILED : INIT);
|
||||||
if (oldc != color) {
|
if (running && oldc != color) {
|
||||||
for (screen = 0; screen < nscreens; screen++) {
|
for (screen = 0; screen < nscreens; screen++) {
|
||||||
XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]);
|
XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]);
|
||||||
XClearWindow(dpy, locks[screen]->win);
|
XClearWindow(dpy, locks[screen]->win);
|
||||||
|
Loading…
Reference in New Issue
Block a user