summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
Diffstat (limited to 'dix')
-rw-r--r--dix/dispatch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 26a461b0d..adcc9cffd 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -195,7 +195,7 @@ UpdateCurrentTime(void)
systime.milliseconds = GetTimeInMillis();
if (systime.milliseconds < currentTime.milliseconds)
systime.months++;
- if (*checkForInput[0] != *checkForInput[1])
+ if (InputCheckPending())
ProcessInputEvents();
if (CompareTimeStamps(systime, currentTime) == LATER)
currentTime = systime;
@@ -395,7 +395,6 @@ Dispatch(void)
{
int result;
ClientPtr client;
- HWEventQueuePtr *icheck = checkForInput;
long start_tick;
nextFreeClientID = 1;
@@ -405,7 +404,7 @@ Dispatch(void)
init_client_ready();
while (!dispatchException) {
- if (*icheck[0] != *icheck[1]) {
+ if (InputCheckPending()) {
ProcessInputEvents();
FlushIfCriticalOutputPending();
}
@@ -425,7 +424,7 @@ Dispatch(void)
start_tick = SmartScheduleTime;
while (!isItTimeToYield) {
- if (*icheck[0] != *icheck[1])
+ if (InputCheckPending())
ProcessInputEvents();
FlushIfCriticalOutputPending();