From 77cf57ae14b2a203384699d2ab8d2a297c2969dc Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Tue, 10 Jul 2018 21:29:15 -0400 Subject: Implement swaylock customization flags --- password.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'password.c') diff --git a/password.c b/password.c index 7c6fd67..7c686b3 100644 --- a/password.c +++ b/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) { -- cgit v1.2.3