Bug 479009

Summary: After switch screen to lower resolution, opened windows size and position is not adjusted new resolution
Product: [Plasma] kwin Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, kde, nate, piotr.mierzwinski
Priority: NOR Keywords: usability
Version First Reported In: 5.27.10   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Piotr Mierzwinski 2023-12-26 01:40:02 UTC
SUMMARY
Usually I work with external monitor (and lid closed) with resolution 2560x1440 (27"), but from time to time I turn on my laptop without external monitor, so I get lower resolution like 1920x1080. 
I often have 3 Firefox windows (resized max vertically and horizontally wider than resolution in my laptop) open when working with an external monitor.
The problem is that when I start Firefox working on laptop all windows are placed such that title bar and left side are moved outside the screen (their left corners), so neither cannot resize it nor move them dragging by title bar.

STEPS TO REPRODUCE
1. connect external monitor with resolution higher than such in laptop
2. close the lid (work only with external monitor)
3. open 3 Firefox windows (in external monitor)
4. resize them (more than resolution in laptop)
5. close the system
6. disconnect external monitor
7. start the system
8. start Firefox

OBSERVED RESULT
Left top part of all windows are moved outside the screen.

EXPECTED RESULT
All windows should be down scaled, such they were adjusted to new (lower) resolution.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:  5.91.90
KDE Frameworks Version: 5.248
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Wayland graphics system
Comment 1 Nate Graham 2024-01-11 18:12:05 UTC
Can reproduce, but also an older issue present in Plasma 5 too.
Comment 2 Piotr Mierzwinski 2024-07-15 22:29:41 UTC
(In reply to Nate Graham from comment #1)
> Can reproduce, but also an older issue present in Plasma 5 too.
So should be fixed in both.
Please consider this also makes problems with moving window for beginner uses, who (I think) are not aware shortcut to move windows without catching title bar.