Bug 487880

Summary: Windows lose their sizes and positions after the monitors go to sleep
Product: [Plasma] kwin Reporter: Pavel Urusov <pavel.urusov>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version: 6.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pavel Urusov 2024-06-01 11:24:49 UTC
SUMMARY
Windows lose their sizes and positions after the monitors go to sleep.

STEPS TO REPRODUCE
1. Arrange windows on a desktop
2. Allow the monitors go to sleep due to inactivity
3. Wake the system up and unlock the user session

OBSERVED RESULT

Windows randomly change their sizes and positions.

EXPECTED RESULT

Windows keep the sizes and positions they had before the system went to sleep.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240524
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 560 Series

ADDITIONAL INFORMATION
I have a suspicion that this bug is related to my multi-monitor setup. It seems that windows keep their positions if I unplug the second monitor. I can only speculate that the monitors wake up / become available to the system in a random order, which causes KWin to rearrange the windows.
Comment 1 Zamundaaa 2024-06-01 22:33:51 UTC
Were the windows tiled before they were rearranged?
Comment 2 Pavel Urusov 2024-06-02 08:05:06 UTC
(In reply to Zamundaaa from comment #1)
> Were the windows tiled before they were rearranged?

Hi, some of them were, yes.
Comment 3 Zamundaaa 2024-06-03 17:47:07 UTC
great, then that should be fixed in 6.0.5

*** This bug has been marked as a duplicate of bug 461886 ***