From b8fcfe8352b12a07c4fa76c6e4c8cf0fe883cedf Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 20 Feb 2024 02:47:14 +0000 Subject: [PATCH] core: avoid idling forever after exit --- src/core/hyprlock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 80c0762..a38eecc 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -233,6 +233,9 @@ void CHyprlock::run() { ret = wl_display_dispatch_pending(m_sWaylandState.display); wl_display_flush(m_sWaylandState.display); } while (ret > 0); + + if (m_bTerminate) + break; } std::lock_guard lg2(m_sLoopState.timerRequestMutex);