---
config.def.h | 3 +++
slock.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
index 9855e21..64a944d 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -10,3 +10,6 @@ static const char *colorname[NUMCOLS] = {
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
+
+/* bell amplitude */
+static const int bell = 100;
diff --git a/slock.c b/slock.c
index 5ae738c..bb3b713 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -165,7 +165,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
else
running = !!strcmp(inputhash, hash);
if (running) {
- XBell(dpy, 100);
+ XBell(dpy, bell);
failure = 1;
}
explicit_bzero(&passwd, sizeof(passwd));
--
2.14.3
Received on Thu Nov 30 2017 - 20:53:30 CET
This archive was generated by hypermail 2.3.0 : Thu Nov 30 2017 - 21:00:28 CET