Bug 491495

Summary: konsole window resizes onto wrong monitor after reconnect
Product: [Plasma] kwin Reporter: Phil Hord <phil.hord>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Phil Hord 2024-08-09 17:38:00 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When I click a window drag edge on konsole to resize it, the window immediately moves to a different monitor. This happens exactly once after I disconnect my external monitor and reconnect it.  The window moves as soon as it is first resized (i.e., while I am still dragging the mouse attempting to resize it).  

STEPS TO REPRODUCE
1. Open konsole and position as "docked" on edge of external monitor. (e.g., with Meta+Left)
2. Disconnect external monitor (konsole window moves to new primary monitor)
3. Reconnect external monitor (konsole window moves back to external monitor)
4. Resize the konsole using the mouse by clicking on the exposed edge of the konsole window and dragging.


OBSERVED RESULT
Konsole window immediately moves back to the laptop monitor.  Drag-resize mode continues as long as I hold the mouse button down, but I must move the mouse relative to the laptop screen now.

EXPECTED RESULT
Konsole window can be resized in place on its existing screen

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.5.0-45-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-10610U CPU @ 1.80GHz
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: LENOVO
Product Name: 20UCS4TR00
System Version: ThinkPad X1 Yoga Gen 5
Comment 1 Phil Hord 2024-10-09 20:26:49 UTC
I saw this happen to a window that was not konsole last week.  So it's probably a general Windowing bug, which makes more sense.