Bug 448809

Summary: KWin Wayland: Main and secondary screen swap after wake up
Product: [Plasma] kwin Reporter: Bohdan <misterjdrg>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: misterjdrg, nate
Priority: NOR    
Version First Reported In: 5.23.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.24
Sentry Crash Report:

Description Bohdan 2022-01-20 06:25:36 UTC
SUMMARY
Main and secondary screen swap after wake up 


STEPS TO REPRODUCE
1. Login with ssdm  (Menu assigned to same display as in X session)
2. Wait until kwin goes to sleep
3. Wake up kwin

OBSERVED RESULT
bottom menu bar/ task manager/ system tray goes to second display

EXPECTED RESULT
menu bar stay on same display


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Linux re 5.15.13-arch1-1 #1 SMP PREEMPT Wed, 05 Jan 2022 16:20:59 +0000 x86_64 GNU/Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Both displays connected to same graphics card

lspci -k relevant bits

27:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
        Subsystem: ASUSTeK Computer Inc. Device 0597
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
Comment 1 Nate Graham 2022-01-20 22:48:38 UTC
In Plasma 5.23 there is no concept of a primary screen, so the order was kind of random in practice, as you have discovered. :) In 5.24, we have fixed this by re-introducing that concept, which should fix this.