mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
Merge 58db712376 into a8192aa709
This commit is contained in:
commit
ff4563b338
1 changed files with 9 additions and 2 deletions
11
os/WaitFor.c
11
os/WaitFor.c
|
|
@ -196,8 +196,15 @@ WaitForSomething(Bool are_ready)
|
|||
timeout = 0;
|
||||
|
||||
BlockHandler(&timeout);
|
||||
if (NewOutputPending)
|
||||
FlushAllOutput();
|
||||
|
||||
/* Always try to flush out anything we have, even for clients that had
|
||||
been stuck for a short while because we've tried to send out too
|
||||
much at once. If we'd only do it when someting *new* is in the queue,
|
||||
then those clients might get stuck for long time, until something else
|
||||
triggers the flush by mere accident.
|
||||
*/
|
||||
FlushAllOutput();
|
||||
|
||||
/* keep this check close to select() call to minimize race */
|
||||
if (dispatchException)
|
||||
i = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue