aboutsummaryrefslogtreecommitdiffstats
path: root/slock.c
diff options
context:
space:
mode:
Diffstat (limited to 'slock.c')
-rw-r--r--slock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/slock.c b/slock.c
index 85d1565..ac1ff20 100644
--- a/slock.c
+++ b/slock.c
@@ -192,9 +192,10 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
break;
}
color = len ? INPUT : ((failure || failonclear) ? FAILED : INIT);
+ printf("%d\n", len);
if (running && oldc != color) {
for (screen = 0; screen < nscreens; screen++) {
- if (background_image != NULL) {
+ if (background_image != NULL && len == 0) {
if (locks[screen]->bgmap)
XSetWindowBackgroundPixmap(dpy, locks[screen]->win, locks[screen]->bgmap);
else