diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-07-02 21:03:10 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-09-29 17:10:05 +0200 |
commit | 7a2836f8db9941aaefd88b595f43589ff513b53e (patch) | |
tree | 1e85855775acbb55ffe62acc70ef8f47d364d4b9 /nx-X11/programs/Xserver/dix | |
parent | 2589a1349c70d965065333423b615a3cef6754a3 (diff) | |
download | nx-libs-7a2836f8db9941aaefd88b595f43589ff513b53e.tar.gz nx-libs-7a2836f8db9941aaefd88b595f43589ff513b53e.tar.bz2 nx-libs-7a2836f8db9941aaefd88b595f43589ff513b53e.zip |
Update currentTime in dispatch loop
commit 312910b4e34215aaa50fc0c6092684d5878dc32f
Author: Chase Douglas <chase.douglas@canonical.com>
Date: Wed Apr 18 11:15:40 2012 -0700
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
request.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'nx-X11/programs/Xserver/dix')
-rw-r--r-- | nx-X11/programs/Xserver/dix/dispatch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/dix/dispatch.c b/nx-X11/programs/Xserver/dix/dispatch.c index d656da748..f80cec0dd 100644 --- a/nx-X11/programs/Xserver/dix/dispatch.c +++ b/nx-X11/programs/Xserver/dix/dispatch.c @@ -407,6 +407,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) { |