Bug 505487

Summary: maximized windows have titlebar hidden behind top placed application menu bar when replaced onto reconnected screen
Product: [Plasma] kwin Reporter: Martin Bednar <martin+kde>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: the few black pixels in the red circle is a part of "g" from the titlebar hidden by the panel

Description Martin Bednar 2025-06-11 19:02:37 UTC
Created attachment 182197 [details]
the few black pixels in the red circle is a part of "g" from the titlebar hidden by the panel

positioning maximized windows on newly connected screen ignores top panel, and window titlebar is positioned under the panel. 


STEPS TO REPRODUCE
1. breeze decorations, and a screen configured with a panel on top. Panel size 20 (panel smaller than the titlebar -- the size is not necessary, but helps to see the issue)
2.  connect display, place a maximized window on the screen
3. disconnect display, wait for everything to settle
4. reconnect display, window should be repositioned on the newly reconnected screen

OBSERVED RESULT
Titlebar of maximized window is hidden behind the panel

EXPECTED RESULT
maximization respects the size of panel, as it does during normal operation

Operating System: Gentoo 2.17
KDE Plasma Version: 6.3.91
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.3
Kernel Version: 6.15.2-gentoo-dist-hardened (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen AI 9 HX 370 w/ Radeon 890M
Memory: 64 GiB of RAM (62.1 GiB usable)
Graphics Processor: AMD Radeon 890M Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen AI 300 Series)
System Version: A9
Comment 1 TraceyC 2025-06-18 22:00:46 UTC
Thanks for the bug report. I can reproduce this on git-master

Note: The bug does not happen with the default panel, it only happens with the Application Menu (aka global menu)