Kodi on Wayland losing focus
from syaochan@feddit.it to linux@lemmy.ml on 22 Apr 11:48
https://feddit.it/post/16849577

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?

#linux

threaded - newest

reddeadhead@awful.systems on 22 Apr 12:12 next collapse

KDE does have focus stealing prevention, Have you messed with that at all? docs.kde.org/stable5/en/kwin/…/index.html#focus-f… The only thing I can think of is maybe some notification steals the focus and doesnt give it back to the window.

syaochan@feddit.it on 22 Apr 12:22 collapse

No, but I will give it a try. Thanks for the suggestion.

EnsignWashout@startrek.website on 22 Apr 19:28 next collapse

Does anyone have any clue?

My best guess would be some relatively passive notification stealing focus.

As reddeadhead mentioned, there’s specific “don’t steal focus” settings. I’ve had good luck with them.

syaochan@feddit.it on 23 Apr 19:58 next collapse

Update: no luck. I tried with every level of stealing focus prevention, but after a few hours Kodi it’s still losing focus. Guess I’ll stick with X11 for the time being.

Zamundaaa@discuss.tchncs.de on 25 Apr 01:05 collapse

This sounds like a bug that was fixed some time ago - the desktop window is stealing focus when it gets created, so every time the display reconnects to the PC.

Because you’re on Debian with Plasma 5.27.5, you don’t have that fix though.

syaochan@feddit.it on 26 Apr 09:38 collapse

Thanks