diff options
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, | |||
95 | switch (keysym) { | 95 | switch (keysym) { |
96 | case XKB_KEY_KP_Enter: /* fallthrough */ | 96 | case XKB_KEY_KP_Enter: /* fallthrough */ |
97 | case XKB_KEY_Return: | 97 | case XKB_KEY_Return: |
98 | if (state->args.ignore_empty && state->password.len == 0) { | ||
99 | break; | ||
100 | } | ||
101 | |||
98 | state->auth_state = AUTH_STATE_VALIDATING; | 102 | state->auth_state = AUTH_STATE_VALIDATING; |
99 | damage_state(state); | 103 | damage_state(state); |
100 | while (wl_display_dispatch(state->display) != -1 && state->run_display) { | 104 | while (wl_display_dispatch(state->display) != -1 && state->run_display) { |