Bug 513576

Summary: Global Menu widget uses more space than necessary | Invisible area on the right side of the widget
Product: [Plasma] plasmashell Reporter: r.kunschke
Component: Global Menu widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, mvourlakos, nate
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: To much space used on the right side
Widget size is correct when panel is filled
Window without Global menu

Description r.kunschke 2025-12-19 11:17:21 UTC
Created attachment 187791 [details]
To much space used on the right side

SUMMARY
The Global Menu widget has an invisible are on the right side. To visualize this I've attached a screenshot. The window title widget is located way behind the Global Menu's search button. Also the right click menu of the Global Menu widget is spawned on a position where the window title widget should be. The window title widget has the fill space property set, which works when a window without a global menu is focused.

STEPS TO REPRODUCE
1. add a global menu 
2. open a window with a global menu
3. To much space is used by the widget.

OBSERVED RESULT
widget uses more space than needed

EXPECTED RESULT
widget should be exactly the size of all it's buttons.

SOFTWARE/OS VERSIONS
Linux: cachyos
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0 
Qt Version: 6.10.1

ADDITIONAL INFORMATION

Works like expected when panel is completely filled. Screenshot in second post.
Comment 1 r.kunschke 2025-12-19 11:17:58 UTC
Created attachment 187792 [details]
Widget size is correct when panel is filled
Comment 2 r.kunschke 2025-12-19 11:20:54 UTC
Created attachment 187793 [details]
Window without Global menu
Comment 3 Nate Graham 2025-12-19 16:45:43 UTC
The widget intentionally fills the empty space on the panel, same as the Task Manager widget.

I'd recommend moving the window title widget to the left of the Global Menu widget. Then the window title also won't jump around based on the number of menus that the app exposes.