commit 50c81d5717ad34bdd20b78ca4bd7342830b32fa2 parent ad680b40192f665dd7af4d62ab6996318e275cb6 Author: Guillaume Maudoux <guillaume.maudoux@uclouvain.be> Date: Mon, 25 Jun 2018 15:48:45 +0200 Keep only the last attempt for retry_verification Diffstat:
| M | i3lock.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/i3lock.c b/i3lock.c @@ -445,6 +445,12 @@ static void handle_key_press(xcb_key_press_event_t *event) { return; default: skip_repeated_empty_password = false; + // A new password is being entered, but a previous one is pending. + // Discard the old one and clear the retry_verification flag. + if (retry_verification) { + retry_verification = false; + clear_input(); + } } switch (ksym) {
