This commit is contained in:
Zacharias-Brohn
2025-10-10 17:42:48 +02:00
parent f6d25c98a6
commit 51cc2d867b
+4 -2
View File
@@ -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
}
}