Closed dragonnn closed 4 months ago
I experience this issue only with certain electron programs. When I open obsidian or vesktop alongside any other xwayland apps, they stop accepting keyboard input. Meanwhile, wine games, telegram, vivaldi, and even spotify continue working fine. This is strange, and I wonder why we are having such vastly different experiences. I have done some investigation and found that the order in which I launch the apps and the order in which I focus on them can change their behavior, sometimes even temporarily resolving the issue. Initially, I thought appending flags or opening from terminal might be what magically fixed the issue, but I was mistaken. it's the order in which you open/focus things that matters.
EDIT: forgot to mention i'm running electron programs in xwayland, because of some issues I have with native wayland version
Spotify is an electron app to, so strange that you don't have issues with it. Wine I didn't test with games but I use a lot heidisql in it. When I first open heidisql and then open spotify heidisql stops receiving any keyboard input. And as far I remeber if I try to type something in heidisql having focus on it whatever I type is still recived by spotify even that it is out of focus.
EDIT
BTW. I noticed sometimes Thunderbird got stuck on reviving the last input action, when I opened a mail into a new tab and did try to close it it would immediately open it again. This I fixed with enabling MOZ_ENABLE_WAYLAND but I am wondering if that could be connected to the issue of keyboard input getting stuck too.
This seems to largely be wine programs not receiving keyboard input properly when other windows are open.
I have Discord, Spotify, and Obsidian open, and I can type in all three :shrug:
xwayland-satellite v0.4-1, xorg-xwayland v24.1.0-1, niri v0.1.7-1, arch linux
I forgot to mention that all the programs I referred to, including electron ones, are running in xwayland due to some issues (mostly IME not working because of the lack of text-input-v1 support, and weird scaling) with the native wayland versions. This issue occurs even without running wine programs. My current workaround is to open a terminal alongside obsidian/vesktop, and focus there before start typing.
If I open some wine app it works fine and receivers keyboard input fine. When it is open I do open for example spotify and that makes keyboard input not work on the wine app even when it is focused back. They keyboard input is stuck on spotify unless I close it. Some logs from xwayland-satellite:
But I don't see anything useful in it. Is that a know issue? Didn't find anything about it here