diff options
-rw-r--r-- | config.h | 2 | ||||
-rw-r--r-- | slock.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -12,4 +12,4 @@ static const char *colorname[NUMCOLS] = { static const int failonclear = 1; /* Background image path, should be available to the user above */ -static const char* background_image = NULL; +static const char* background_image = "/home/jozan/pics/lock/caco.png"; @@ -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 |