[hackers] [slock][patch] configure bell amplitude

From: M Farkas-Dyck <strake888_AT_gmail.com>
Date: Thu, 30 Nov 2017 11:53:30 -0800

 From 8cb17e8f16e1e87c8719c6b76dd1c87ab28c30e6 Mon Sep 17 00:00:00 2001
From: M Farkas-Dyck <strake888_AT_gmail.com>
Date: Thu, 30 Nov 2017 11:44:03 -0800
Subject: [PATCH] configure bell amplitude

---
  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