diff options
author | Brian Ashworth <[email protected]> | 2018-07-10 21:29:15 -0400 |
---|---|---|
committer | Brian Ashworth <[email protected]> | 2018-07-10 21:29:15 -0400 |
commit | 936a920a8e95c001c86b9186d36fa652f874287d (patch) | |
tree | c56b4475f38f6ad5b783434dc609f0cfabeeec8a /swaylock/password.c | |
parent | 60bba5a961b646ebfca1df38d8da9df89064cc01 (diff) |
Implement swaylock customization flags
Diffstat (limited to 'swaylock/password.c')
-rw-r--r-- | swaylock/password.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/swaylock/password.c b/swaylock/password.c index 7c6fd67b..7c686b34 100644 --- a/swaylock/password.c +++ b/swaylock/password.c @@ -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) { |