diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 4c261e1..e8142bd 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -575,6 +575,15 @@ in color: Theme.barBg property var activeDropdown: null + + HoverHandler { + onHoveredChanged: { + if (hovered && bar.activeDropdown) { + bar.activeDropdown.resetAutoClose(); + } + } + } + function closeAllDropdowns() { if (activeDropdown && activeDropdown.visible) { activeDropdown.animateClose(); @@ -1029,6 +1038,10 @@ in _closeDelay.start(); } + function resetAutoClose() { + if (visible && !closing) _autoClose.restart(); + } + anchor.window: bar anchor.rect.x: dropdownX - (fullWidth + 16) / 2 anchor.rect.y: bar.height