From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver] / driver / lock.c
index 564998450828f78af6d9f9375b72795f300c6bf9..7c92be60d6375bda6dbb69c47191d1ab833919ef 100644 (file)
@@ -2193,6 +2193,11 @@ auth_finished_cb (saver_info *si)
           s = buf;
         }
       si->unlock_failures = 0;
+
+      /* ignore failures if they all were too recent */
+      if (time((time_t *) 0) - si->unlock_failure_time 
+          < si->prefs.auth_warning_slack)
+       goto END;
     }
   else                                         /* good, with no failures, */
     goto END;                                  /* or timeout, or cancel. */