[hackers] [slock] Don't change to failure colour on success || David Phillips

From: <git_AT_suckless.org>
Date: Thu, 27 Aug 2015 06:17:11 +0200 (CEST)

commit b95ee111c7625375716e848ec81af2f57ca35b02
Author: David Phillips <dbphillipsnz_AT_gmail.com>
AuthorDate: Thu Aug 27 06:16:25 2015 +0200
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Thu Aug 27 06:16:25 2015 +0200

    Don't change to failure colour on success

diff --git a/slock.c b/slock.c
index b3bee92..6be8f22 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -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);
Received on Thu Aug 27 2015 - 06:17:11 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 27 2015 - 06:24:12 CEST