aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-31 17:49:19 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-31 17:49:19 +0200
commit848b39b287f2342c6646011bb7dc2c33ee66fa76 (patch)
tree35198925be6641c3d6ef4df0f9a7a7f0bd8d53da
parentregruvboxed (diff)
downloadslock-848b39b287f2342c6646011bb7dc2c33ee66fa76.tar.gz
slock-848b39b287f2342c6646011bb7dc2c33ee66fa76.tar.bz2
slock-848b39b287f2342c6646011bb7dc2c33ee66fa76.tar.xz
slock-848b39b287f2342c6646011bb7dc2c33ee66fa76.tar.zst
slock-848b39b287f2342c6646011bb7dc2c33ee66fa76.zip
Cool update
-rw-r--r--config.h2
-rw-r--r--slock.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/config.h b/config.h
index 56c6dc3..4550a94 100644
--- a/config.h
+++ b/config.h
@@ -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";
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