Hello, SUMMARY I am not sure if this belongs here or on Kodi's site, so I apologize if this is the wrong place. The bug is simple, when I turn off my screen and leave my computer alone for a while, when I come back to it Kodi will now be the current app on the current virtual desktop whereas I usually open it on my 4th virtual desktop and expect it to stay there. I don't use dpms, screen saver or anything like that and this happens on the X11 backend, no idea about Wayland but I can test it if needed. It's possible it has nothing to do with turning off my screen, I'll try to leave my screen on next time to see if that changes anything or not. STEPS TO REPRODUCE 1. Open Kodi on a virtual desktop 2. Switch to another virtual desktop 3. Turn off the monitor and leave the computer for a while 4. Come back later and reactivate the screen and move the mouse. OBSERVED RESULT Kodi is now the active app on the last used virtual desktop EXPECTED RESULT The last used app should still be current and Kodi should still be on the virtual desktop it was placed on. SOFTWARE/OS VERSIONS Linux: Arch Linux, testing repository, Linux 4.20.10, Xorg 1.20.3 KDE Plasma Version: 5.15 KDE Frameworks Version: 5.55 Qt Version: 5.12.1 ADDITIONAL INFORMATION I am using an AMD 580X with the mesa driver from git master. Kodi is the only app that behaves like that, and it's been the case for maybe a couple months. I'm happy to add any information needed. Thank you!
The problem is that Kodi closes itself if you turn off the monitor. I'm afraid this is CANTFIX. You could work around this by using a window rule.
s/itself/its window/
Thank you for the quick reply, I will try using a rule, a workaround for this is good enough for me.
Hello again Vlad, I apologize for bothering you but please give me an example of the rule. I've tried one and it did not work, so I'm assuming I've done something wrong. It's my first time using rules. Thank you!
Hi, :-) Launch Kodi, press Alt+F3, select More actions > Special window settings..., and select Remember desktop rule. Hope it will help.
In case it helps others, I had to do also skip the taskbar, as if not I get some notification about Kodi's window and it pops up on all other desktops... Not my favorite thing to do, but at least it's annoyment free and I usually don't have anything else but Kodi on that desktop anyway... Thank you!