aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
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);