diff options
| author | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-10 21:29:15 -0400 |
|---|---|---|
| committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-10 21:29:15 -0400 |
| commit | 77cf57ae14b2a203384699d2ab8d2a297c2969dc (patch) | |
| tree | 2594bb4c77387e576074de2da8deb8f2360bf2c8 /password.c | |
| parent | ecf5b656c918b6460b9676f2b25541b41ec14231 (diff) | |
Implement swaylock customization flags
Diffstat (limited to 'password.c')
| -rw-r--r-- | password.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -95,6 +95,10 @@ void swaylock_handle_key(struct swaylock_state *state, switch (keysym) { case XKB_KEY_KP_Enter: /* fallthrough */ case XKB_KEY_Return: + if (state->args.ignore_empty && state->password.len == 0) { + break; + } + state->auth_state = AUTH_STATE_VALIDATING; damage_state(state); while (wl_display_dispatch(state->display) != -1 && state->run_display) { |
