diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-04-19 17:03:54 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-04-19 17:03:54 +1000 |
commit | 51a8d8dd19d7496fe84b37a1f0a7a03658120539 (patch) | |
tree | 9aa082bd83dced4594ce0c64a7c79f3184d175e3 /dix/dispatch.c | |
parent | ebf214876a4885a98ded4f5525925b69005fae05 (diff) | |
parent | 00cf1c40b28417d7035c2917d048553eb720023c (diff) |
Merge branch 'input-fixes' of git://people.freedesktop.org/~cndougla/xserver into for-keith
Diffstat (limited to 'dix/dispatch.c')
-rw-r--r-- | dix/dispatch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c index 62f8ea305..d97180548 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -214,7 +214,7 @@ UpdateCurrentTimeIf(void) systime.milliseconds = GetTimeInMillis(); if (systime.milliseconds < currentTime.milliseconds) systime.months++; - if (*checkForInput[0] == *checkForInput[1]) + if (CompareTimeStamps(systime, currentTime) == LATER) currentTime = systime; } @@ -393,6 +393,9 @@ Dispatch(void) } /* now, finally, deal with client requests */ + /* Update currentTime so request time checks, such as for input + * device grabs, are calculated correctly */ + UpdateCurrentTimeIf(); result = ReadRequestFromClient(client); if (result <= 0) { if (result < 0) |