i3 - improved tiling WM


Ignore password validation is pam is in wrong state

Patch status: merged

Patch by Neodyblue

Long description:

This add a protection against wrong password spamming

To apply this patch, use:
curl http://cr.i3wm.org/patch/655/raw.patch | git am

b/i3lock.c

14
@@ -299,6 +299,9 @@ static void handle_key_press(xcb_key_press_event_t *event) {
15
     case XKB_KEY_Return:
16
     case XKB_KEY_KP_Enter:
17
     case XKB_KEY_XF86ScreenSaver:
18
+        if (pam_state == STATE_PAM_WRONG)
19
+            return;
20
+
21
         if (skip_without_validation()) {
22
             clear_input();
23
             return;