randr: fix RRGetCrtcTransform reply length
Reply length field missed to add the payload's size.
Fixes: c6f1b8a735
Issue: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1797
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1844>
This commit is contained in:
parent
a0c1eeea98
commit
0ca5aaba50
|
@ -1831,7 +1831,7 @@ ProcRRGetCrtcTransform(ClientPtr client)
|
||||||
xRRGetCrtcTransformReply rep = {
|
xRRGetCrtcTransformReply rep = {
|
||||||
.type = X_Reply,
|
.type = X_Reply,
|
||||||
.sequenceNumber = client->sequence,
|
.sequenceNumber = client->sequence,
|
||||||
.length = bytes_to_int32(sizeof(xRRGetCrtcTransformReply) - sizeof(xReq)),
|
.length = bytes_to_int32(sizeof(xRRGetCrtcTransformReply) - sizeof(xReq) + nextra),
|
||||||
.hasTransforms = crtc->transforms,
|
.hasTransforms = crtc->transforms,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue