X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3lock;a=blobdiff_plain;f=i3lock.c;h=fd4d1d294275b54c5bc59ae816914c36676de149;hp=13adc2b43838402d6975eb945cbb94f954c67bd4;hb=50c81d5717ad34bdd20b78ca4bd7342830b32fa2;hpb=ad680b40192f665dd7af4d62ab6996318e275cb6 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) {