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);