quickshell: fix tray icon hover closing its own menu

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 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-26 17:38:38 +01:00
parent 635196f1e7
commit db87df3ba3

View file

@ -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;