From 2ac4f547240e0fc397ba71766643f5d228012130 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Mar 2019 02:46:42 +0100 Subject: [PATCH] WindowServer: Oops, the message loop should wake up for timers. --- WindowServer/WSMessageLoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp index 88fe0d5a957..06731e03750 100644 --- a/WindowServer/WSMessageLoop.cpp +++ b/WindowServer/WSMessageLoop.cpp @@ -146,7 +146,7 @@ void WSMessageLoop::wait_for_message() } } - int rc = select(max_fd + 1, &rfds, nullptr, nullptr, m_queued_messages.is_empty() ? nullptr : &timeout); + int rc = select(max_fd + 1, &rfds, nullptr, nullptr, m_queued_messages.is_empty() && m_timers.is_empty() ? nullptr : &timeout); if (rc < 0) { ASSERT_NOT_REACHED(); }