Bug 450890

Summary: Application windows restore to wrong monitor (Neon 5.24)
Product: [Plasma] kwin Reporter: Jeff Sheffel <jscodefix>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: david.landrith, nate, rqkeating, xaver.hugl
Priority: NOR Keywords: regression
Version: 5.24.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.26
Sentry Crash Report:

Description Jeff Sheffel 2022-02-26 20:54:32 UTC
SUMMARY
In a dual monitor configuration, when my displays turn on after Screen Energy Saving or upon (automatically) restoring a Session after login, my application windows are all stacked on one monitor, such that I must manually lay them out (reposition them). I do not think this bug was occurring a couple of months ago (i.e. new behavior).

I only use a single (virtual) desktop.
This is a real pain; having to reposition the windows every time!  Please help.

STEPS TO REPRODUCE
1. Layout multiple windows on dual monitors.
2. Wait for system to "switch off" monitors (Power Management -> Screen Energy Saving), OR put system to Sleep.
3. Wake the system (or restore session).

OBSERVED RESULT
After waking, see that all windows move to one monitor and are also positioned partially off of the monitor.
This is a real pain in the a$$; having to reposition the windows every time!

EXPECTED RESULT
All windows should restore to their original positions on their original monitors.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.24
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.19.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Kernel 5.13.0-30 (64-bit), Graphics X11, Mesa Intel HD 620
Comment 1 Jeff Sheffel 2022-03-02 15:35:29 UTC
I observe that if I manually Sleep my computer, upon waking (and restoring the session?), that the windows are correctly positioned on the dual monitors, as I left them before sleeping. This behavior differs compared to when the monitors switch off or the system sleeps upon timeout (which is when the bug occurs).

I am also waiting for Neon to upgrade Plasma to 5.24.2, to see if this bug has been fixed.
Comment 2 Jeff Sheffel 2022-03-09 22:37:28 UTC
Sadly, I upgraded to the latest Plasma version (5.24.3) and the bug still occurs.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.24
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Comment 3 Jeff Sheffel 2022-03-18 17:23:46 UTC
How do I get some attention on this bug?  I imagine that many others are suffering from this bug, too.  I have seen a couple of other Kwin bugs that could be related. Perhaps the bug is caused by my specific hardware setup (though I doubt that). To reiterate, (most of the time?) if I manually Sleep my computer, the windows do restore properly to each monitor. But, if the Screen Energy Saving timer is triggered, then when I reactivate the monitors (with a mouse move), then the bug occurs.

I have set (checked): Window Behavior -> Advanced -> Allow apps to remember the positions of their own window
I have selected: Startup/Shutdown -> Desktop Session -> Restore previous saved session

Please advise. Please help.
Comment 4 Nate Graham 2022-03-26 03:26:02 UTC
> Please advise. Please help.
I understand you're frustrated and in need of assistance, but please keep in mind that this is a volunteer project. See https://community.kde.org/Get_Involved/Issue_Reporting#Have_realistic_expectations

Of the three major KWin developers, one is a volunteer, one is busy with employer-directed projects, and the third is living in a country that is being invaded by Russia. I'm afraid some patience will be required here.
Comment 5 rkeating 2022-04-29 03:43:40 UTC
Look into Rapid Hot Plug Detect (Rapid HPD).  There is a lot of talk about this with regards to Windows but the description of the problem is the same.
Comment 6 david.landrith 2022-06-04 01:14:53 UTC
(In reply to Nate Graham from comment #4)
> > Please advise. Please help.
> I understand you're frustrated and in need of assistance, but please keep in
> mind that this is a volunteer project. See
> https://community.kde.org/Get_Involved/
> Issue_Reporting#Have_realistic_expectations
> 
> Of the three major KWin developers, one is a volunteer, one is busy with
> employer-directed projects, and the third is living in a country that is
> being invaded by Russia. I'm afraid some patience will be required here.

Then maybe your project lead shouldn't be making blog posts denigrating efforts like kwinft that are actually trying to move this effort forward.

And maybe, just maybe, if you've got less than 2 1/2 developers working on kwin, you might consider that this makes it pretty dishonest to tout KDE as a viable alternative to Windows or macOS.
Comment 7 Nate Graham 2022-09-08 18:37:47 UTC
This was recently fixed for Plasma 5.26.