aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-02-18 22:07:37 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:57:21 +0200
commitc73ddd3118f37449155fdd30128f6f1d67f70c7e (patch)
tree13118ecbc8d5d6965b4d4f544f15eee01ff6627c
parentf38ecc6ffef14de748ea56ea2a5df32e04eb0e0d (diff)
downloadnx-libs-c73ddd3118f37449155fdd30128f6f1d67f70c7e.tar.gz
nx-libs-c73ddd3118f37449155fdd30128f6f1d67f70c7e.tar.bz2
nx-libs-c73ddd3118f37449155fdd30128f6f1d67f70c7e.zip
dix/dispatch.c: Fix copy/paste error from before git history in UpdateCurrentTimeIf()
Backport from this commit: commit 8dfd98245d2c44a1eb4c8b7c275e6cfc10fe40f1 Author: Chase Douglas <chase.douglas@canonical.com> Date: Wed Apr 11 11:14:51 2012 -0700 Fix copy/paste error from before git history in UpdateCurrentTimeIf() See UpdateCurrentTime() for reference. I don't know what bug this might trigger, but it wouldn't hurt to fix this. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--nx-X11/programs/Xserver/dix/dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/dix/dispatch.c b/nx-X11/programs/Xserver/dix/dispatch.c
index 57806f99d..cd832319d 100644
--- a/nx-X11/programs/Xserver/dix/dispatch.c
+++ b/nx-X11/programs/Xserver/dix/dispatch.c
@@ -209,7 +209,7 @@ UpdateCurrentTimeIf()
systime.milliseconds = GetTimeInMillis();
if (systime.milliseconds < currentTime.milliseconds)
systime.months++;
- if (*checkForInput[0] == *checkForInput[1])
+ if (CompareTimeStamps(systime, currentTime) == LATER)
currentTime = systime;
}