Bug 452254

Summary: Window switch "their" monitor after unplug+replug (maybe regression of 5.24)
Product: [Plasma] kwin Reporter: Jiri Slaby <jirislaby>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.24.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jiri Slaby 2022-04-04 08:45:39 UTC
This is maybe a dup of bug 452247?

SUMMARY
When I unplug an external monitor connected via Thunderbolt and replug it, all windows switch "their" monitor. I.e. if a window was on the laptop monitor, it is now on the external one and vice versa.

STEPS TO REPRODUCE
1. plug in an external monitor
2. move some windows there
3. unplug + replug

OBSERVED RESULT
The windows are on the opposite monitors.

EXPECTED RESULT
The window's monitor should be preserved.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220402
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.16.9-3.gdedbf20-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-6600U CPU @ 2.60GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520

ADDITIONAL INFORMATION
This happens likely since 5.24. I did not see this before.
Comment 1 Nate Graham 2022-04-04 20:55:38 UTC
Yep looks like it.

Notably this is not an issue with the X11-specific code to position some KDE windows since you're on Wayland.

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