mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 13:29:48 +01:00
grace: ignore key up and fix typo
This commit is contained in:
parent
53eab43296
commit
a7ec195842
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue