From 876965f944f127a32c0265bcaa47f716d9e1451b Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Fri, 2 Sep 2022 18:42:49 +0200 Subject: [PATCH] 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 --- password.c | 4 ---- 1 file changed, 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 */