From 83b1bbc6cc52037ddd110d750b0ac0bb6cf876c1 Mon Sep 17 00:00:00 2001 From: Igor Kolokolnikov Date: Sat, 26 Sep 2026 19:50:12 -0700 Subject: [PATCH] Clean up. --- config.h | 4 ---- slock.c | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index ec1a393..18f8a4e 100644 --- a/config.h +++ b/config.h @@ -3,11 +3,7 @@ static const char *user = ""; static const char *group = ""; -#if !DEBUG static const int displaytimeout = 5; /* 0 to disable */ -#else -static const int displaytimeout = 0; -#endif /* treat a cleared input like a wrong password (color) */ static const int failonclear = 1; diff --git a/slock.c b/slock.c index d8b01b8..fdfd40d 100644 --- a/slock.c +++ b/slock.c @@ -903,6 +903,8 @@ run_loop(struct arena *arena, XResizeWindow(dpy, locks[screen]->win, rre->width, rre->height); } + XSetWindowBackground(dpy, locks[screen]->win, + BlackPixel(dpy, screen)); XClearWindow(dpy, locks[screen]->win); break; }