swaylock
swaylock copied to clipboard
Key to wake up computer (from sleep) forwarded to swaylock
version: 1.5
I'm not sure if this is a regression or is due to different hardware. But now, when I press a key to wakeup my computer from sleep, this key is forwarded to swaylock as well, as if I had typed it into swaylock.
Hi I seem to run into this aswell.
I try and remember to clear before entering password, however it's a daily occurence to type in wrong password because of the forwarded key.
This is intentional behavior: swaylock has focus, so it receives all keypresses.
What logic would know that a keypress should be ignored? If it's only one, then what about people who keep slapping keys to make sure the keyboard work up and the laptop unsuspended and woke swayidle? It's important that no real keypresses are dropped.
In the meantime, use a modifier key or other key without consequence to swaylock input to wake things up without mistyping your password.
Thank you for the clear explanation. This helps alot.
I will wake up my computer with the first key from my password!
Yeah, I don't see any way to ignore such keypresses, at least from the swaylock and Sway side.