From db87df3ba3121b1e2ddf614853326249ee572c67 Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 26 May 2026 17:38:38 +0100 Subject: [PATCH] quickshell: fix tray icon hover closing its own menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skip toggle when hovering back to the icon whose menu is already open — checks trayItem identity, not just dropdown. Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 8372886..5f9fe88 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -879,7 +879,7 @@ in } } onEntered: { - if (bar.activeDropdown && modelData.hasMenu) { + if (bar.activeDropdown && modelData.hasMenu && !(bar.activeDropdown === contextMenu && contextMenu.trayItem === modelData)) { bar.toggleDropdown(contextMenu, function() { let pos = parent.mapToItem(bar.contentItem, parent.width / 2, 0); contextMenu.dropdownX = pos.x;