Hi, I’ve just replaced my “HTPC” and done a fresh install of Debian on it. There’s a strange issue with Kodi and the focus under Wayland: after some time Kodi (running in full screen) loses focus so I cannot navigate it with the TV remote anymore, but I have to switch back to Kodi using ALT+TAB on the keyboard. I’m not sure of when this happens, basically I power on the TV on the next day and Kodi has lost focus, the PC is always on. Since something like this had never happened before on the old PC (running Mint), I tried switching to xorg instead of Wayland and the problem disappeared. Desktop environment is KDE, Kodi is installed via official flatpak. No standard keyboard or mouse are connected to the PC, only a wireless keyboard with touchpad which is pratically always powered off, so it is impossible that someone is switching focus by mistake. Does anyone have any clue?
KDE does have focus stealing prevention, Have you messed with that at all? https://docs.kde.org/stable5/en/kwin/kcontrol/windowbehaviour/index.html#focus-focusstealing The only thing I can think of is maybe some notification steals the focus and doesnt give it back to the window.
No, but I will give it a try. Thanks for the suggestion.