mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-01-07 03:49:48 +01:00
core: disable input once fade out started
This commit is contained in:
parent
c7760b617b
commit
2a04d92697
1 changed files with 3 additions and 0 deletions
|
@ -745,6 +745,9 @@ std::optional<std::string> CHyprlock::passwordLastFailReason() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CHyprlock::onKey(uint32_t key, bool down) {
|
void CHyprlock::onKey(uint32_t key, bool down) {
|
||||||
|
if (m_bFadeStarted)
|
||||||
|
return;
|
||||||
|
|
||||||
if (down && std::chrono::system_clock::now() < m_tGraceEnds) {
|
if (down && std::chrono::system_clock::now() < m_tGraceEnds) {
|
||||||
unlock();
|
unlock();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue