mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
Implement swaylock customization flags
This commit is contained in:
parent
60bba5a961
commit
936a920a8e
5 changed files with 379 additions and 113 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue