swaylock icon indicating copy to clipboard operation
swaylock copied to clipboard

Key to wake up computer (from sleep) forwarded to swaylock

Open NilsIrl opened this issue 5 years ago • 4 comments

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.

NilsIrl avatar Feb 10 '20 00:02 NilsIrl

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.

druneau avatar Nov 09 '23 14:11 druneau

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.

kennylevinsen avatar Nov 09 '23 16:11 kennylevinsen

Thank you for the clear explanation. This helps alot.

I will wake up my computer with the first key from my password!

druneau avatar Nov 09 '23 17:11 druneau

Yeah, I don't see any way to ignore such keypresses, at least from the swaylock and Sway side.

emersion avatar Nov 09 '23 17:11 emersion