WindowServer: Oops, the message loop should wake up for timers.

This commit is contained in:
Andreas Kling 2019-03-17 02:46:42 +01:00
parent 0f49b5e7be
commit 2ac4f54724

View file

@ -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();
}