From 51cc2d867b9ac46efb852cdda6dcc19f071d500f Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Fri, 10 Oct 2025 17:42:48 +0200 Subject: [PATCH] daivin --- Modules/TrayItem.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/TrayItem.qml b/Modules/TrayItem.qml index 4af6330..21c6c06 100644 --- a/Modules/TrayItem.qml +++ b/Modules/TrayItem.qml @@ -1,4 +1,6 @@ import QtQuick +import QtQuick.Controls +import QtQuick.Effects import Quickshell import Quickshell.Widgets import Quickshell.Services.SystemTray @@ -18,7 +20,7 @@ IconImage { case Qt.RightButton: if (root.item.hasMenu) { const window = QsWindow.window; - const widgetRect = window.contentItem.mapFromItem(root, 0, root.height + 10 , root.width, root.height); + const widgetRect = window.contentItem.mapFromItem(root, -24, root.height -12 , root.width, root.height); menuAnchor.anchor.rect = widgetRect; menuAnchor.open(); } @@ -30,6 +32,6 @@ IconImage { id: menuAnchor menu: root.item.menu anchor.window: root.QsWindow.window?? null - anchor.adjustment: PopupAdjustment.Flip + anchor.adjustment: PopupAdjustment.SlideX } }