summaryrefslogtreecommitdiff
path: root/dix/dispatch.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-04-19 17:03:54 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-04-19 17:03:54 +1000
commit51a8d8dd19d7496fe84b37a1f0a7a03658120539 (patch)
tree9aa082bd83dced4594ce0c64a7c79f3184d175e3 /dix/dispatch.c
parentebf214876a4885a98ded4f5525925b69005fae05 (diff)
parent00cf1c40b28417d7035c2917d048553eb720023c (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.c5
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)