Mango/Sway: fixed unclickable NPopupContextMenu

This commit is contained in:
ItsLemmy
2025-11-24 19:12:08 -05:00
parent 5983ba2fd1
commit e1dc72216e
19 changed files with 20 additions and 23 deletions
+1 -1
View File
@@ -102,9 +102,9 @@ NIconButton {
onRightClicked: {
var popupMenuWindow = PanelService.getPopupMenuWindow(screen);
if (popupMenuWindow) {
popupMenuWindow.showContextMenu(contextMenu);
const pos = BarService.getContextMenuPosition(root, contextMenu.implicitWidth, contextMenu.implicitHeight);
contextMenu.openAtItem(root, pos.x, pos.y);
popupMenuWindow.showContextMenu(contextMenu);
}
}
onMiddleClicked: PanelService.getPanel("launcherPanel", screen)?.toggle()