Bug 448809 - KWin Wayland: Main and secondary screen swap after wake up
Summary: KWin Wayland: Main and secondary screen swap after wake up
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.23.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-20 06:25 UTC by Bohdan
Modified: 2022-01-20 22:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.24
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.