From 848b39b287f2342c6646011bb7dc2c33ee66fa76 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 31 May 2022 17:49:19 +0200 Subject: Cool update --- slock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'slock.c') 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 -- cgit v1.2.3