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:
parent
635196f1e7
commit
db87df3ba3
1 changed files with 1 additions and 1 deletions
|
|
@ -879,7 +879,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onEntered: {
|
onEntered: {
|
||||||
if (bar.activeDropdown && modelData.hasMenu) {
|
if (bar.activeDropdown && modelData.hasMenu && !(bar.activeDropdown === contextMenu && contextMenu.trayItem === modelData)) {
|
||||||
bar.toggleDropdown(contextMenu, function() {
|
bar.toggleDropdown(contextMenu, function() {
|
||||||
let pos = parent.mapToItem(bar.contentItem, parent.width / 2, 0);
|
let pos = parent.mapToItem(bar.contentItem, parent.width / 2, 0);
|
||||||
contextMenu.dropdownX = pos.x;
|
contextMenu.dropdownX = pos.x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue