Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NilsIrl opened this issue Feb 10, 2020 · 5 comments
Open

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

NilsIrl opened this issue Feb 10, 2020 · 5 comments

Comments

@NilsIrl
Copy link
Contributor

NilsIrl commented Feb 10, 2020

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.

@druneau
Copy link

druneau commented Nov 9, 2023

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.

@kennylevinsen
Copy link
Member

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.

@druneau
Copy link

druneau commented Nov 9, 2023

Thank you for the clear explanation. This helps alot.

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

@emersion
Copy link
Member

emersion commented Nov 9, 2023

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

@laktak
Copy link

laktak commented Dec 20, 2024

I think it would help if swaylock could indicate that a character is in the buffer.

Maybe by showing a different color when the buffer is empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants