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
This commit is contained in:
parent
75e837c31a
commit
876965f944
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user