From 23ba72323af785516db6cbcf6c1b2fa907a8232f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 30 Nov 2006 23:16:42 -0800 Subject: [PATCH] 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) --- randr/rrproperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;