Bug 514465

Summary: Screen enumeration changes after monitors turn off and are woken up
Product: [Plasma] kwin Reporter: Nick W <nick>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nick W 2026-01-11 18:16:37 UTC
I have shortcuts set in Plasma to "Move window to screen X" where, in my case X is 0-4. When I boot, my screens are consistently in the order 0,2,1,3.

After my screens turn off, and I wake them up, they are re-ordered 1,0,2,3. This also matches the screen priority order set in my display config (might be coincidental).

kinfo:
Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.12.54-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 64 GiB of RAM (61.9 GiB usable)
Graphics Processor 1: AMD Radeon RX 6900 XT
Graphics Processor 2: AMD Radeon Graphics
Comment 1 Bug Janitor Service 2026-01-12 20:21:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8633
Comment 2 Zamundaaa 2026-01-12 22:53:01 UTC
Git commit 68b55655695fa2d751536c757299ccf5ff44bbf0 by Xaver Hugl.
Committed on 12/01/2026 at 22:19.
Pushed by zamundaaa into branch 'master'.

useractions: use output order for "move window to screen i" shortcuts

The normal output list doesn't have a stable order.

M  +3    -3    src/useractions.cpp

https://invent.kde.org/plasma/kwin/-/commit/68b55655695fa2d751536c757299ccf5ff44bbf0
Comment 3 Zamundaaa 2026-01-12 23:22:28 UTC
Git commit 45ac68d93e8f4d6466f2809ac3414d2ef6383b81 by Xaver Hugl.
Committed on 12/01/2026 at 22:55.
Pushed by zamundaaa into branch 'Plasma/6.5'.

useractions: use output order for "move window to screen i" shortcuts

The normal output list doesn't have a stable order.
(cherry picked from commit 68b55655695fa2d751536c757299ccf5ff44bbf0)

M  +3    -3    src/useractions.cpp

https://invent.kde.org/plasma/kwin/-/commit/45ac68d93e8f4d6466f2809ac3414d2ef6383b81