From 1cf7f41a69579249df018dedd3f577e32a4bf5fe Mon Sep 17 00:00:00 2001 From: veneficium Date: Wed, 7 Jan 2026 22:44:39 +0100 Subject: [PATCH] fix quickshell tray right click stupidly --- modules/home/niri/shell.qml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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); } } }