diff options
author | Drew DeVault <[email protected]> | 2018-07-11 04:39:13 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2018-07-11 04:39:13 -0700 |
commit | edfe42032cfe9a5bf49f42801e5c8349e7aa2eec (patch) | |
tree | 72d47d39076ac1d05145957a46159b2db68d46d6 /swaylock/password.c | |
parent | 00daa174463591efc44db8203298ddc30082547e (diff) | |
parent | 22d152f1fea35960eab23afdf78e87d2f6483d6e (diff) |
Merge pull request #2240 from RedSoxFan/implement-1961
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) { |