From 526f673f7d3a32ab9857ac49a598328df9e1fd2c Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 26 May 2026 21:01:28 +0100 Subject: [PATCH] quickshell: keep dropdown open while hovering bar Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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