Commit 9ed5b263 authored by Keith Packard's avatar Keith Packard

os: Recompute whether any clients are ready after ProcessWorkQueue() (bug 98030)

If a work proc wakes up a sleeping client and it is ready to execute,
we need to re-compute the local 'are_ready' value before deciding
what timeout value to use in WaitForSomething.

Bugzilla: Keith Packard's avatarKeith Packard <>
Reviewed-by: default avatarHans de Goede <>
parent 2c91f323
......@@ -204,8 +204,10 @@ WaitForSomething(Bool are_ready)
crashed connections and the screen saver timeout */
while (1) {
/* deal with any blocked jobs */
if (workQueue)
if (workQueue) {
are_ready = clients_are_ready();
if (are_ready)
timeout = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment