-
Notifications
You must be signed in to change notification settings - Fork 106
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
Missing first Esc keypress after a window is focused #680
Comments
Which commit is this on? Can't reproduce with latest master. |
Thanks for looking into it! It's |
Even on that commit I don't see any missing events. For testing I have been running clients with both Any particular application / test setup you are using? |
I first ran into this "in the wild" using alacritty and helix. I tested it by modifying the
This is me focusing the window (using Super+j, so that explains the initial modifier state and the first 2 key releases) and then pressing Esc twice. The first press only sends the release; the second one sends both. |
Ok, I just noticed something new: this only happens when I'm running fcitx. With fcitx turned off, I get
I did just go and check sway again, and I get the Esc press event whether or not fcitx is running |
After a long hiatus, I've started digging into this again. Some print-debugging reveals that the escape keypress is being filtered out in The only place that I see where this can come from is from a I see that the grab is unset when the |
When I focus a window, the first time I press Esc I get a key release event but not a key press event. After that, each time I press Esc I get both a press and a release. Until I switch focus away and back again, and then once again the first time I press Esc I only get the release.
The text was updated successfully, but these errors were encountered: