summaryrefslogtreecommitdiff
path: root/password.c
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera <hugo@whynothugo.nl>2022-09-02 18:42:49 +0200
committerSimon Ser <contact@emersion.fr>2023-04-14 09:55:19 +0200
commit876965f944f127a32c0265bcaa47f716d9e1451b (patch)
tree917123d03c7ab2cdec2077f919bd40a36a77f443 /password.c
parent75e837c31abe2fa06167b6f1f1a253ab397faf81 (diff)
Accept input while validating
Allow typing new input while the previous one is validating. Can be tested with: ninja -C build && sway -c sway.conf Where sway.config is: exec ./build/swaylock Fixes: https://github.com/swaywm/swaylock/issues/241
Diffstat (limited to 'password.c')
-rw-r--r--password.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/password.c b/password.c
index aa3d101..c4950b3 100644
--- a/password.c
+++ b/password.c
@@ -101,10 +101,6 @@ static void update_highlight(struct swaylock_state *state) {
void swaylock_handle_key(struct swaylock_state *state,
xkb_keysym_t keysym, uint32_t codepoint) {
- // Ignore input events if validating
- if (state->auth_state == AUTH_STATE_VALIDATING) {
- return;
- }
switch (keysym) {
case XKB_KEY_KP_Enter: /* fallthrough */