summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
Diffstat (limited to 'glx')
-rw-r--r--glx/vndcmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glx/vndcmds.c b/glx/vndcmds.c
index 21c6fef9e..d6d8719e1 100644
--- a/glx/vndcmds.c
+++ b/glx/vndcmds.c
@@ -92,6 +92,9 @@ static void SetReplyHeader(ClientPtr client, void *replyPtr)
xGenericReply *rep = (xGenericReply *) replyPtr;
rep->type = X_Reply;
rep->sequenceNumber = client->sequence;
+ if (client->swapped) {
+ swaps(&rep->sequenceNumber);
+ }
rep->length = 0;
}