]> git.sur5r.net Git - i3/i3lock/commitdiff
Merge pull request #188 from Airblader/feature-issue-template
authorOrestis <orestisf1993@gmail.com>
Fri, 7 Sep 2018 19:53:01 +0000 (22:53 +0300)
committerGitHub <noreply@github.com>
Fri, 7 Sep 2018 19:53:01 +0000 (22:53 +0300)
Added ISSUE_TEMPLATE.md

i3lock.c

index 13adc2b43838402d6975eb945cbb94f954c67bd4..fd4d1d294275b54c5bc59ae816914c36676de149 100644 (file)
--- 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) {