From e271a79235a842fe6c063ba7d0444227f3b1d5f7 Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 26 May 2026 15:10:03 +0100 Subject: [PATCH] quickshell: animate calendar close on focus loss Handle onActiveChanged to set open=false and start close timer instead of letting grabFocus hide the popup instantly. Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 91dc882..278f3a8 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -529,7 +529,7 @@ in Timer { id: calCloseTimer - interval: 240 + interval: 230 onTriggered: calPopup.visible = false } } @@ -850,8 +850,13 @@ in onVisibleChanged: { if (visible) { open = true; - } else { + } + } + + onActiveChanged: { + if (!active && visible) { open = false; + calCloseTimer.start(); } }