summaryrefslogtreecommitdiff
path: root/xfixes
diff options
context:
space:
mode:
authorDaniel Martin <consume.noise@gmail.com>2012-12-07 19:38:55 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2012-12-10 14:18:22 +1000
commit36740d02b9ca117f1404e077367fbbbe271a17d6 (patch)
treec1e826e0a061bdf5d6ec182753d11fd8e80a2d35 /xfixes
parent5daa442fe15d9a87112a2def673c99a5f2506dcf (diff)
xfixes: Fix minor number in QueryVersion
Due to a typo the major version number was passed as minor version to version_compare(). Regression-from: ffd4874798ba54f86acac75779a15b4babeaa5f3 Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xfixes')
-rw-r--r--xfixes/xfixes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c
index 52c57dfab..48af9ea6e 100644
--- a/xfixes/xfixes.c
+++ b/xfixes/xfixes.c
@@ -74,7 +74,7 @@ ProcXFixesQueryVersion(ClientPtr client)
if (version_compare(stuff->majorVersion, stuff->minorVersion,
SERVER_XFIXES_MAJOR_VERSION,
- SERVER_XFIXES_MAJOR_VERSION) < 0) {
+ SERVER_XFIXES_MINOR_VERSION) < 0) {
rep.majorVersion = stuff->majorVersion;
rep.minorVersion = stuff->minorVersion;
}