mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 04:31:57 -07:00
unlock the event queue before sleeping
This commit is contained in:
@@ -80,8 +80,8 @@ void CEventManager::startThread() {
|
|||||||
eventQueueMutex.lock();
|
eventQueueMutex.lock();
|
||||||
|
|
||||||
if (m_dQueuedEvents.empty()){ // if queue empty, sleep and ignore
|
if (m_dQueuedEvents.empty()){ // if queue empty, sleep and ignore
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
|
||||||
eventQueueMutex.unlock();
|
eventQueueMutex.unlock();
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user