aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-randr.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2011-07-04 15:05:05 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2011-07-04 15:05:05 +0200
commitfb35f5ae6ddd4d141f9822d51c1e9f8decaecff6 (patch)
tree5328c6eb25775df4088edd9a43545f86ccbaf62e /src/gamma-randr.c
parentAdd option to show program version (-V). (diff)
downloadredshift-ng-fb35f5ae6ddd4d141f9822d51c1e9f8decaecff6.tar.gz
redshift-ng-fb35f5ae6ddd4d141f9822d51c1e9f8decaecff6.tar.bz2
redshift-ng-fb35f5ae6ddd4d141f9822d51c1e9f8decaecff6.tar.xz
Fix randr version check (Alisdair Tullo).
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r--src/gamma-randr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamma-randr.c b/src/gamma-randr.c
index 8781e92..c6320f9 100644
--- a/src/gamma-randr.c
+++ b/src/gamma-randr.c
@@ -72,7 +72,7 @@ randr_init(randr_state_t *state)
return -1;
}
- if (ver_reply->major_version < RANDR_VERSION_MAJOR ||
+ if (ver_reply->major_version != RANDR_VERSION_MAJOR ||
ver_reply->minor_version < RANDR_VERSION_MINOR) {
fprintf(stderr, _("Unsupported RANDR version (%u.%u)\n"),
ver_reply->major_version, ver_reply->minor_version);