From a7ec195842b0d06fed4c07116b5dfbb09f2b1018 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Fri, 1 Mar 2024 17:40:25 +0100 Subject: [PATCH] grace: ignore key up and fix typo --- src/core/hyprlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 9794854..ef4bcd9 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -658,7 +658,7 @@ std::optional CHyprlock::passwordLastFailReason() { void CHyprlock::onKey(uint32_t key, bool down) { const auto SYM = xkb_state_key_get_one_sym(m_pXKBState, key + 8); - if (std::chrono::system_clock::now() < g_pHyprlock->m_tGraceEnd) { + if (down && std::chrono::system_clock::now() < g_pHyprlock->m_tGraceEnds) { unlockSession(); return; }