diff --git a/modules/home/niri/shell.qml b/modules/home/niri/shell.qml index 4171e28..2b84ae8 100644 --- a/modules/home/niri/shell.qml +++ b/modules/home/niri/shell.qml @@ -1,3 +1,4 @@ +//@ pragma UseQApplication import Quickshell import QtQuick import QtQuick.Layouts @@ -55,12 +56,24 @@ PanelWindow { id: hover_handler } + PopupWindow { + id: menu_parent + anchor.item: tray_item + anchor.rect.y: tray_item.height + anchor.rect.x: tray_item.width + visible: true + width: 1 + height: 1 + color: "transparent" + } + TapHandler { + acceptedButtons: Qt.LeftButton | Qt.RightButton onTapped: (eventPoint, button) => { if (button == 1) { tray_item.modelData.activate(); } else { - tray_item.modelData.display(label, 0, 0); + tray_item.modelData.display(menu_parent, 0, 0); } } }