Bug 474250

Summary: Windows don't get moved to external monitor when switching from extended displays to external
Product: [Plasma] kwin Reporter: Niisse <nisselommerde>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Niisse 2023-09-07 09:47:58 UTC
SUMMARY
Note: this might belong in KScreen instead, I'm not sure.

When I have both my external monitor and laptop monitor enabled, and switch to the external screen only (by meta+p), the windows on my laptop monitor stay there and are inaccessible. Only when I disable the external monitor first by switching to laptop screen, then switching to external screen only, are they moved to the external monitor.


STEPS TO REPRODUCE
1.  Have both external and laptop screen enabled
2.  Have a window on laptop screen
3.  Switch to external screen only

OBSERVED RESULT
The windows on the laptop screen are not moved to the external monitor

EXPECTED RESULT
The windows on the laptop screen are moved to the external monitor

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.12-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VivoBook_ASUSLaptop X515UA_M515UA
System Version: 1.0

ADDITIONAL INFORMATION
This is a clean Fedora 38 KDE install, and it also happened on OpenSUSE Tumbleweed.