From 2c42fb84923addc8a809e5894b96dba905b8b335 Mon Sep 17 00:00:00 2001 From: pblcp Date: Thu, 29 Oct 2026 14:43:02 +0100 Subject: [PATCH] tray: open overflow item menus at the icon (#4002) port 2.0 (cherry picked from commit a1c8db2558550239001b3a952635085a2b22bc26) --- quickshell/Modules/DBar/Widgets/SystemTrayBar.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickshell/Modules/DBar/Widgets/SystemTrayBar.qml b/quickshell/Modules/DBar/Widgets/SystemTrayBar.qml index 4eb2c2719..4c6a86b21 100644 --- a/quickshell/Modules/DBar/Widgets/SystemTrayBar.qml +++ b/quickshell/Modules/DBar/Widgets/SystemTrayBar.qml @@ -19,6 +19,8 @@ BasePill { property var parentWindow: null property var widgetData: null property string section: "right" + // A same-named binding inside the overflow grid would resolve to its own property. + readonly property DPopout overflowPopoutRef: overflowPopout property bool isAtBottom: false property bool useOverflowPopup: !widgetData?.trayUseInlineExpansion property bool useSingleLineOverflowPopup: SettingsData.widgetOption("systemTray", widgetData, "trayPopupSingleLine") @@ -931,7 +933,7 @@ BasePill { TrayOverflowGrid { id: menuGrid bar: root - overflowPopout: overflowPopout + overflowPopout: root.overflowPopoutRef popupUsesVerticalLine: overflowContent.popupUsesVerticalLine anchors.verticalCenter: overflowContent.popupUsesVerticalLine ? undefined : parent.verticalCenter anchors.horizontalCenter: overflowContent.popupUsesVerticalLine ? parent.horizontalCenter : undefined