diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 70f74be..3514ddd 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -1210,7 +1210,7 @@ zwlr_screencopy_manager_v1* CHyprlock::getScreencopy() { } void CHyprlock::attemptRestoreOnDeath() { - if (m_sCurrentDesktop != "Hyprland") + if (!m_bLocked || m_sCurrentDesktop != "Hyprland") return; const auto XDG_RUNTIME_DIR = getenv("XDG_RUNTIME_DIR");