Commit 312910b4 authored by Chase Douglas's avatar Chase Douglas Committed by Chase Douglas

Update currentTime in dispatch loop

A request, like input device grabs, may check a request timestamp
against currentTime. It is possible for currentTime to lag a previously
sent event timestamp. If the client makes a request based on such an
event timestamp, the request may fail the validity check against
currentTime unless we always update the time before processing the
Signed-off-by: default avatarChase Douglas <>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <>
parent a986f2f3
...@@ -393,6 +393,9 @@ Dispatch(void) ...@@ -393,6 +393,9 @@ Dispatch(void)
} }
/* now, finally, deal with client requests */ /* now, finally, deal with client requests */
/* Update currentTime so request time checks, such as for input
* device grabs, are calculated correctly */
result = ReadRequestFromClient(client); result = ReadRequestFromClient(client);
if (result <= 0) { if (result <= 0) {
if (result < 0) if (result < 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment