core: disable input once fade out started

This commit is contained in:
Maximilian Seidler 2024-03-15 14:43:08 +01:00
parent c7760b617b
commit 2a04d92697

View file

@ -745,6 +745,9 @@ std::optional<std::string> CHyprlock::passwordLastFailReason() {
}
void CHyprlock::onKey(uint32_t key, bool down) {
if (m_bFadeStarted)
return;
if (down && std::chrono::system_clock::now() < m_tGraceEnds) {
unlock();
return;