Bug 505487 - maximized windows have titlebar hidden behind top placed application menu bar when replaced onto reconnected screen
Summary: maximized windows have titlebar hidden behind top placed application menu bar...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.3.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2025-06-11 19:02 UTC by Martin Bednar
Modified: 2025-06-18 22:01 UTC (History)
1 user (show)

See Also:
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 (160.84 KB, image/png)
2025-06-11 19:02 UTC, Martin Bednar
Details

Note You need to log in before you can comment on or make changes to this bug.
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)