swaywm / swaylock

Screen locker for Wayland
MIT License
851 stars 202 forks source link

Separate password validation and input state machines #294

Closed mstoeckl closed 1 year ago

mstoeckl commented 1 year ago

This commit mostly decouples the parts of the indicator state related to authentication messages from those related to keyboard input. This makes it possible to type input while a previous password is verifying, without hiding the verifying/wrong message as soon as a key is pressed.

Note: i3lock currently has the ring highlight indicators vanish about 0.25 seconds after a key press; since Swaylock currently keeps them around until transitioning to the idle state, I have not tried to match the i3lock behavior more closely here.