mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: render when fade out started
This commit is contained in:
parent
2a04d92697
commit
90c313488d
1 changed files with 7 additions and 1 deletions
|
@ -535,11 +535,17 @@ void CHyprlock::unlock() {
|
|||
const auto CURRENTDESKTOP = getenv("XDG_CURRENT_DESKTOP");
|
||||
const auto SZCURRENTD = std::string{CURRENTDESKTOP ? CURRENTDESKTOP : ""};
|
||||
|
||||
if (**PNOFADEOUT || SZCURRENTD != "Hyprland")
|
||||
if (**PNOFADEOUT || SZCURRENTD != "Hyprland") {
|
||||
unlockSession();
|
||||
return;
|
||||
}
|
||||
|
||||
m_tFadeEnds = std::chrono::system_clock::now() + std::chrono::milliseconds(500);
|
||||
m_bFadeStarted = true;
|
||||
|
||||
for (auto& o : m_vOutputs) {
|
||||
o->sessionLockSurface->render();
|
||||
}
|
||||
}
|
||||
|
||||
// wl_seat
|
||||
|
|
Loading…
Reference in a new issue