diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 4d63933..05ae14d 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -682,12 +682,10 @@ in if (activeDropdown && activeDropdown.visible) { activeDropdown.animateClose(); } - activeDropdown = null; } function toggleDropdown(dd, setupFn) { if (dd.visible && !dd.closing) { dd.animateClose(); - activeDropdown = null; } else { if (activeDropdown && activeDropdown !== dd && activeDropdown.visible) { activeDropdown.animateClose(); @@ -1262,7 +1260,7 @@ in Timer { id: _closeDelay interval: 230 - onTriggered: { dropdown.visible = false; dropdown.closing = false; } + onTriggered: { dropdown.visible = false; dropdown.closing = false; if (bar.activeDropdown === dropdown) bar.activeDropdown = null; } } HoverHandler { @@ -1363,7 +1361,8 @@ in ctx.arc(r + 0.5, h - r - 0.5, r, Math.PI, Math.PI / 2, true); // Bottom edge if (dropdown.alignRight) { - ctx.lineTo(w, h - 0.5); + // Stop 8px before right edge — bottom-right ear continues + ctx.lineTo(w - r, h - 0.5); } else { ctx.lineTo(w - r - 0.5, h - 0.5); // Bottom-right curve