From cdb8e7774f800dfd2297a73c7b7cf2cfb486c28b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 6 Mar 2024 00:00:58 +0000 Subject: [PATCH] core: don't restore on terminate --- src/core/hyprlock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index fb22f38..b33ac7a 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -886,6 +886,9 @@ zwlr_screencopy_manager_v1* CHyprlock::getScreencopy() { } void CHyprlock::attemptRestoreOnDeath() { + if (m_bTerminate) + return; + // dirty hack uint64_t timeNowMs = std::chrono::duration_cast(std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t({0})).count();