Skip to content

Commit

Permalink
grace: ignore key up and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma authored and fufexan committed Mar 1, 2024
1 parent 53eab43 commit a7ec195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a7ec195

Please sign in to comment.