Bug 448664

Summary: Use ExpandedRepresentation for its popup
Product: [Plasma] plasmashell Reporter: Michail Vourlakos <mvourlakos>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: carl, kde, materka, nate
Priority: NOR    
Version First Reported In: 5.23.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michail Vourlakos 2022-01-17 17:40:26 UTC
SUMMARY
Plasma Systray currently is using its own internal PlasmaCore.Dialog in order to show its hidden contents : https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/systemtray/package/contents/ui/main.qml#L206

Unfortunately that approach does not allow other systray users such as Latte Dock to provide their own solution for the popup.

Plasma offers an alternative through ExpandedRepresentation in order to standardize this. That solution will automatically enable Latte to provide its own solution for the popup. The standardize way to use PlasmaCore.Dialog for applet popups can be found at: https://github.com/KDE/plasma-desktop/blob/master/desktoppackage/contents/applet/CompactApplet.qml

This was discussed first at reddit: https://www.reddit.com/r/kde/comments/s5dnku/how_to_fix_system_tray_intersecting_latte_dock/
Comment 1 Nate Graham 2022-01-17 21:04:28 UTC
Huh, I wonder why we don't do this. Maybe to have zero margins, but we now have a better way to do this.
Comment 2 Konrad Materka 2023-10-30 23:30:00 UTC
Is this related?
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3440