diff --git a/settings/hyprland.nix b/settings/hyprland.nix index bf58e7d..0230e7b 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -518,6 +518,7 @@ in MouseArea { anchors.fill: parent onClicked: { + if (calPopup.justDismissed) return; if (calPopup.visible) { calPopup.open = false; calCloseTimer.start(); @@ -841,6 +842,7 @@ in color: "transparent" property bool open: false + property bool justDismissed: false property real fullWidth: calCol.width + 32 property real fullHeight: calCol.height + 24 @@ -852,9 +854,17 @@ in open = true; } else { open = false; + justDismissed = true; + dismissGuardTimer.start(); } } + Timer { + id: dismissGuardTimer + interval: 100 + onTriggered: calPopup.justDismissed = false + } + // Concave corner — left Item { anchors.right: calContent.left