From 1803834db9b83ebf0148ecbd8caba6c60bedb324 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Thu, 31 Oct 2024 10:36:13 +0100 Subject: [PATCH] core: only attemptRestoreOnDeath when locked --- src/core/hyprlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");