summaryrefslogtreecommitdiff
path: root/randr/rrproperty.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@ukulele.keithp.com>2006-11-30 23:16:42 -0800
committerDave Airlie <airlied@linux.ie>2006-12-02 10:44:06 +1100
commit23ba72323af785516db6cbcf6c1b2fa907a8232f (patch)
treed06e2eb61aab80302c00f6802e07ad5456f094d2 /randr/rrproperty.c
parentccd804c6c01cdfffe938fa5336be9b5668a6f0c0 (diff)
RandR ListOutputProperties has nAtoms element, not nProperties
Earlier RandR 1.2 encoding revisions used 8-bit nProperties field. Final RandR 1.2 spec uses 16-bit nAtoms field instead. (cherry picked from 66b6358a393972946f16394918db2401c51dc5ed commit)
Diffstat (limited to 'randr/rrproperty.c')
-rw-r--r--randr/rrproperty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index a47f30671..13e848340 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -325,9 +325,9 @@ ProcRRListOutputProperties (ClientPtr client)
return(BadAlloc);
rep.type = X_Reply;
- rep.nProperties = numProps;
rep.length = (numProps * sizeof(Atom)) >> 2;
rep.sequenceNumber = client->sequence;
+ rep.nAtoms = numProps;
if (client->swapped)
{
int n;