From: Ingo Bürk Date: Thu, 23 Aug 2018 12:50:20 +0000 (+0200) Subject: Merge pull request #192 from layus/fast-type X-Git-Tag: 2.11~2 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3lock;a=commitdiff_plain;h=3f8b0a12c34328c3cd6f8897cd48e34930b09319;hp=ad680b40192f665dd7af4d62ab6996318e275cb6 Merge pull request #192 from layus/fast-type Keep only the last attempt for retry_verification --- diff --git a/i3lock.c b/i3lock.c index 13adc2b..fd4d1d2 100644 --- 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) {