summaryrefslogtreecommitdiff
path: root/WindowServer/WSMessageLoop.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-17 02:46:42 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-17 02:46:42 +0100
commit2ac4f547240e0fc397ba71766643f5d228012130 (patch)
treed5256d4b82c3dda6eb0560a52c3dddfc29b715c9 /WindowServer/WSMessageLoop.cpp
parent0f49b5e7be73eb92aea42eca98295e8ffa8d558a (diff)
downloadserenity-2ac4f547240e0fc397ba71766643f5d228012130.zip
WindowServer: Oops, the message loop should wake up for timers.
Diffstat (limited to 'WindowServer/WSMessageLoop.cpp')
-rw-r--r--WindowServer/WSMessageLoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp
index 88fe0d5a95..06731e0375 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();
}