summaryrefslogtreecommitdiffstats
path: root/swaylock/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaylock/password.c')
-rw-r--r--swaylock/password.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/swaylock/password.c b/swaylock/password.c
index 06c1180c..1839f991 100644
--- a/swaylock/password.c
+++ b/swaylock/password.c
@@ -103,7 +103,8 @@ void swaylock_handle_key(struct swaylock_state *state,
103 render_frames(state); 103 render_frames(state);
104 wl_display_roundtrip(state->display); 104 wl_display_roundtrip(state->display);
105 if (attempt_password(&state->password)) { 105 if (attempt_password(&state->password)) {
106 exit(0); 106 state->run_display = false;
107 break;
107 } 108 }
108 state->auth_state = AUTH_STATE_INVALID; 109 state->auth_state = AUTH_STATE_INVALID;
109 render_frames(state); 110 render_frames(state);