[hackers] [slock][patch] Don't flash FAILED color when pressing Shift

From: Philipp Rempe <me_AT_ph1l.wtf>
Date: Tue, 21 Jul 2020 13:35:35 +0200

When holding down a modifier key like shift to type in a password
starting with a capital letter slock flashes the FAILED color. This
patch fixes that.

---
 slock.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/slock.c b/slock.c
index 5ae738c..28e325e 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -154,7 +154,8 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
                            IsKeypadKey(ksym) ||
                            IsMiscFunctionKey(ksym) ||
                            IsPFKey(ksym) ||
-                           IsPrivateKeypadKey(ksym))
+                           IsPrivateKeypadKey(ksym) ||
+                           IsModifierKey(ksym))
                                continue;
                        switch (ksym) {
                        case XK_Return:
--
2.27.0
Received on Tue Jul 21 2020 - 13:35:35 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 21 2020 - 13:36:32 CEST