this post was submitted on 22 Apr 2025
14 points (100.0% liked)

Linux

53490 readers
1151 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

top 4 comments
sorted by: hot top controversial new old
[–] syaochan@feddit.it 1 points 21 hours ago

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.

[–] EnsignWashout@startrek.website 4 points 1 day ago* (last edited 1 day ago)

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.

[–] reddeadhead@awful.systems 8 points 2 days ago (1 children)

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.

[–] syaochan@feddit.it 4 points 2 days ago

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