Bug 404585 - After turning off my screen, Kodi's window will be moved to the current v-desktop
Summary: After turning off my screen, Kodi's window will be moved to the current v-des...
Status: CLOSED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.15.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-20 05:19 UTC by John E
Modified: 2019-03-02 08:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John E 2019-02-20 05:19:33 UTC
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!
Comment 1 Vlad Zahorodnii 2019-02-20 09:38:01 UTC
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.
Comment 2 Vlad Zahorodnii 2019-02-20 09:40:48 UTC
s/itself/its window/
Comment 3 John E 2019-02-20 09:59:14 UTC
Thank you for the quick reply, I will try using a rule, a workaround for this is good enough for me.
Comment 4 John E 2019-02-23 01:21:50 UTC
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!
Comment 5 Vlad Zahorodnii 2019-02-25 09:58:07 UTC
Hi, :-)

Launch Kodi, press Alt+F3, select More actions > Special window settings..., and select Remember desktop rule.

Hope it will help.
Comment 6 John E 2019-03-02 08:42:09 UTC
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!