-
Notifications
You must be signed in to change notification settings - Fork 115
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
"stuck" keys on xwayland #350
Comments
Oh that is a fun bug... thanks for reporting. Initial guess what is causing this issue (more a note to myself): Application closes, cosmic-comp revokes focus from the window, we don't have a valid target to send keyboard events to, Xwayland never gets Needs some more in-depth debugging and probably some workaround for release-events with long-running clients. |
I'm unable to reproduce this bug. Can it be closed? |
I still have this issue on alpha 5. If I run The same thing seems to happen in any XWayland application that can be closed by a key event. Ie. if I write an OpenCV image viewing application and add an option to exit through some key event, the same thing happens. Small disclaimer: it seems to be XWayland applications only, but I'm not 100% sure. For example if I try to fix it by going to a Qt application, hit the stuck key, then Let me know if you have some pointers in the code where I can put some debugging code to help resolve this issue. |
It can also be recreated with Chromium. If I close Chromium with Super + Q, relaunching it causes it to close immediately. Another way to show the bug is to hold a letter key down while clicking the X button on the Chromium window. Then (with the key released) I can open Chromium again, and the URL bar starts filling up with the letter I was previously holding until I hit some keys again to send it new key release events. |
@WatchMkr just curious if you've managed to reproduce the issue or if you need more information. I see the alpha 7 milestone has been added which is fine for me. It's a minor annoyance to be honest, but it definitely still exists. |
description
So, I have 2 xwayland windows (one is a terminal, and another one doesn't really matter). Then I exit the shell with
<C-d>
which closes the terminal, and 'd' gets kinda "stuck" (for the lack of a better word in my vocab) for all other xwayland windows I focus after that and until I press something else.demo
untitled.mp4
Here I show the behavior on 2 instances of wezterm with
enable_wayland = false
specified in the config, but the same also goes for 2st
s or wezterm and brave (without the env vars that tell chromium stuff to run natively)details
OS: NixOS
Cosmic-comp commit: probably 9cb1adb (i.e. the one in https://github.com/lilyinstarlight/nixos-cosmic/blob/d9f0cdbc53b3a602e9faea5b2efbe7804639cb3c/pkgs/cosmic-comp/package.nix)
The text was updated successfully, but these errors were encountered: