From 2ce35f6d45c3e1761d33b786520ff5ba56a3c518 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 31 Jan 2008 21:39:48 +1100 Subject: [PATCH] Simplify critical output flushing. --- dix/dispatch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dix/dispatch.c b/dix/dispatch.c index 3589fba1c..32efff782 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -424,10 +424,9 @@ Dispatch(void) while (!isItTimeToYield) { if (*icheck[0] != *icheck[1]) - { ProcessInputEvents(); - FlushIfCriticalOutputPending(); - } + + FlushIfCriticalOutputPending(); #ifdef SMART_SCHEDULE if (!SmartScheduleDisable && (SmartScheduleTime - start_tick) >= SmartScheduleSlice) @@ -483,9 +482,6 @@ Dispatch(void) client->errorValue, result); break; } -#ifdef DAMAGEEXT - FlushIfCriticalOutputPending (); -#endif } FlushAllOutput(); #ifdef SMART_SCHEDULE