grace: ignore key up and fix typo

This commit is contained in:
Maximilian Seidler 2024-03-01 17:40:25 +01:00 committed by Mihai Fufezan
parent 53eab43296
commit a7ec195842
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ std::optional<std::string> 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;
}