From d472ab34447b56b77699c86541d75513b0905a3c Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 27 May 2026 16:03:27 +0100 Subject: [PATCH] quickshell: fix border timing and right-aligned overlap Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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