diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 7f79956..cca40e8 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -696,11 +696,13 @@ in } MouseArea { + id: trayMouse anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: (event) => { if (event.button === Qt.RightButton && modelData.hasMenu) { - modelData.display(bar, event.x, event.y); + let mapped = trayMouse.mapToItem(null, event.x, event.y); + modelData.display(trayPopup, mapped.x, mapped.y); } else { modelData.activate(); }