Address review feedback from @emersion

This commit is contained in:
Drew DeVault 2018-04-04 18:52:44 -04:00
parent 053b51c3ff
commit 5d444b34f6
3 changed files with 31 additions and 25 deletions

View file

@ -103,7 +103,8 @@ void swaylock_handle_key(struct swaylock_state *state,
render_frames(state);
wl_display_roundtrip(state->display);
if (attempt_password(&state->password)) {
exit(0);
state->run_display = false;
break;
}
state->auth_state = AUTH_STATE_INVALID;
render_frames(state);