mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-17 15:55:52 -05:00
Keep only the last attempt for retry_verification
This commit is contained in:
parent
ad680b4019
commit
50c81d5717
1 changed files with 6 additions and 0 deletions
6
i3lock.c
6
i3lock.c
|
@ -445,6 +445,12 @@ static void handle_key_press(xcb_key_press_event_t *event) {
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
skip_repeated_empty_password = false;
|
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) {
|
switch (ksym) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue