diff options
Diffstat (limited to 'slock.c')
-rw-r--r-- | slock.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -189,8 +189,9 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, caps = !caps; break; default: - if (num && !iscntrl((int)buf[0]) && - (len + num < sizeof(passwd))) { + if (controlkeyclear && iscntrl((int)buf[0])) + continue; + if (num && (len + num < sizeof(passwd))) { memcpy(passwd + len, buf, num); len += num; } |