Xext: replace WriteRpcbufToClient() by X_SEND_REPLY_WITH_RPCBUF() macro

Use the new X_SEND_REPLY_WITH_RPCBUF() macro for final reply write out.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-22 19:01:32 +02:00
committed by Enrico Weigelt
parent 681ff201d5
commit 7aa06ee749
6 changed files with 12 additions and 94 deletions

View File

@@ -1029,17 +1029,12 @@ ProcXineramaQueryScreens(ClientPtr client)
/* REQUEST(xXineramaQueryScreensReq); */
CARD32 number = (noPanoramiXExtension) ? 0 : PanoramiXNumScreens;
xXineramaQueryScreensReply rep = {
.type = X_Reply,
.sequenceNumber = client->sequence,
.length = bytes_to_int32(number * sz_XineramaScreenInfo),
.number = number
};
REQUEST_SIZE_MATCH(xXineramaQueryScreensReq);
if (client->swapped) {
swaps(&rep.sequenceNumber);
swapl(&rep.length);
swapl(&rep.number);
}
@@ -1061,8 +1056,7 @@ ProcXineramaQueryScreens(ClientPtr client)
}
}
WriteToClient(client, sizeof(xXineramaQueryScreensReply), &rep);
WriteRpcbufToClient(client, &rpcbuf);
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
return Success;
}