core: avoid idling forever after exit

This commit is contained in:
Vaxry 2024-02-20 02:47:14 +00:00
parent 1b5b3e7df8
commit b8fcfe8352

View file

@ -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<std::mutex> lg2(m_sLoopState.timerRequestMutex);