summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-03-15 13:21:00 -0700
committerEric Anholt <eric@anholt.net>2007-03-15 13:21:00 -0700
commit3b71b0f89f1db837da91650baa0ef4bb7ef2e98f (patch)
treeabfc7b7d4b7bf056121038fc9cfd1b021156b1c8 /randr
parent2fe74ef339c3a4902ae8214f5a0454662895422c (diff)
Set the RandR version returned, rather than just passing the proto's version.
Diffstat (limited to 'randr')
-rw-r--r--randr/rrdispatch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/randr/rrdispatch.c b/randr/rrdispatch.c
index 7f98965a4..5525427f6 100644
--- a/randr/rrdispatch.c
+++ b/randr/rrdispatch.c
@@ -22,6 +22,9 @@
#include "randrstr.h"
+#define SERVER_RANDR_MAJOR 1
+#define SERVER_RANDR_MINOR 2
+
Bool
RRClientKnowsRates (ClientPtr pClient)
{
@@ -49,8 +52,8 @@ ProcRRQueryVersion (ClientPtr client)
* Report the current version; the current
* spec says they're all compatible after 1.0
*/
- rep.majorVersion = RANDR_MAJOR;
- rep.minorVersion = RANDR_MINOR;
+ rep.majorVersion = SERVER_RANDR_MAJOR;
+ rep.minorVersion = SERVER_RANDR_MINOR;
if (client->swapped) {
swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n);