From: Michael Stapelberg Date: Sun, 10 Nov 2013 19:03:48 +0000 (+0100) Subject: Revert "Bug fix: Call clear_input() when the password is wrong." X-Git-Tag: 2.6~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df760b6e9eedfd7e91e301c94b9c9469351b4e6d;p=i3%2Fi3lock Revert "Bug fix: Call clear_input() when the password is wrong." This reverts commit 33d953fbdf4f8630e919643974f32ce6793c7c2b, in preparation for reverting commit a305e62 --- diff --git a/i3lock.c b/i3lock.c index 2d8a580..7d1f7b3 100644 --- a/i3lock.c +++ b/i3lock.c @@ -205,7 +205,6 @@ static void auth_failed(void) { fprintf(stderr, "Authentication failure\n"); pam_state = STATE_PAM_WRONG; - clear_input(); redraw_screen(); /* Clear this state after 2 seconds (unless the user enters another @@ -259,6 +258,7 @@ static void input_done(void) { if (cpid == 0) { exit(pam_authenticate(pam_handle, 0) == PAM_SUCCESS); } else if (cpid > 0) { + clear_input(); struct ev_child *child_watcher = calloc(sizeof(struct ev_io), 1); ev_child_init(child_watcher, child_cb, cpid, 0); ev_child_set(child_watcher, cpid, 0);