mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-13 05:40:42 +01:00
core: don't attempt to unlock when we are not locked yet (#661)
This commit is contained in:
parent
408ce95dd0
commit
e77bc92b99
1 changed files with 5 additions and 0 deletions
|
@ -518,6 +518,11 @@ void CHyprlock::run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CHyprlock::unlock() {
|
void CHyprlock::unlock() {
|
||||||
|
if (!m_bLocked) {
|
||||||
|
Debug::log(WARN, "Unlock called, but not locked yet. This can happen when dpms is off during the grace period.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const bool IMMEDIATE = m_sCurrentDesktop != "Hyprland";
|
const bool IMMEDIATE = m_sCurrentDesktop != "Hyprland";
|
||||||
|
|
||||||
g_pRenderer->startFadeOut(true, IMMEDIATE);
|
g_pRenderer->startFadeOut(true, IMMEDIATE);
|
||||||
|
|
Loading…
Reference in a new issue