Bug 487051

Summary: Desktop icons' positions change after waking up from sleep when a secondary monitor is disabled.
Product: [I don't know] kde Reporter: Sin Jeong-hun <typingcat>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cwo.kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Shows the problem in a drawing.
Illustration of the problem

Description Sin Jeong-hun 2024-05-15 10:49:19 UTC
Created attachment 169500 [details]
Shows the problem in a drawing.

SUMMARY
When using dual monitors and one monitor is disabled, sleep/wake up (no password) changes the desktop icons location. Very often vertically-aligned icons become horizontally-aligned, or sometimes they were kept vertical, but some of them moved randomly. When no monitors are disabled, it did not seem to happen. Please see the attachment for illustration.


STEPS TO REPRODUCE
1. Disable a secondary monitor.
2. Arrange icons vertically at the left side, like Window's default desktop icons.
3. Sleep
4. Wake it up (no password when waking up)

OBSERVED RESULT
Icons positions change

EXPECTED RESULT
Icons remain where they were before sleep.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Sin Jeong-hun 2024-05-15 10:58:26 UTC
Created attachment 169501 [details]
Illustration of the problem

Previous image was .SVG with transparent background which made the white text (LibreOffice's default text colour in dark theme) illegible, so I created a new image with black background.
Comment 2 Sin Jeong-hun 2024-05-15 13:25:01 UTC
I have tried "context menu -> Icons -> Locked", but the icons still got rearranged horizontally anyway.

KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-2 (64-bit)
Graphics Platform: Wayland
Graphics Processor: Mesa IntelĀ® Arc

The sizes/scaling values of the two monitors are different; and the main monitor's scaling is 160%.
Comment 3 cwo 2024-09-18 16:26:08 UTC
Thank you for the bug report!

I'm merging this into the general tracker bug for desktop icons repositioning themselves in multi-monitor setups.

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