summaryrefslogtreecommitdiff
path: root/Xext/xevie.c
diff options
context:
space:
mode:
authorDeron Johnson <deron.johnson@sun.com>2005-01-20 23:47:26 +0000
committerDeron Johnson <deron.johnson@sun.com>2005-01-20 23:47:26 +0000
commit57c954d3aa00c4882c7fecfd53e772f9641c0b38 (patch)
tree0ddc1a6ca4f67efbd382f211fe71a2f77138b8e1 /Xext/xevie.c
parentcc390e4ed5e0d1bc8f7c3eaf9de67be4e9792b7c (diff)
Integrate changes for release-0-6-1lg3d-rel-0-7-0
Diffstat (limited to 'Xext/xevie.c')
-rw-r--r--Xext/xevie.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/Xext/xevie.c b/Xext/xevie.c
index b024a622a..ed755f10c 100644
--- a/Xext/xevie.c
+++ b/Xext/xevie.c
@@ -127,6 +127,11 @@ int ProcQueryVersion (client)
rep.sequence_number = client->sequence;
rep.server_major_version = XEVIE_MAJOR_VERSION;
rep.server_minor_version = XEVIE_MINOR_VERSION;
+ if (client->swapped) {
+ swaps(&rep.sequence_number, n);
+ swapl(&rep.server_major_version, n);
+ swapl(&rep.server_minor_version, n);
+ }
WriteToClient (client, sizeof (xXevieQueryVersionReply), (char *)&rep);
return client->noClientException;
}
@@ -153,7 +158,11 @@ int ProcStart (client)
return BadAccess;
rep.type = X_Reply;
+ rep.length = 0;
rep.sequence_number = client->sequence;
+ if (client->swapped) {
+ swaps(&rep.sequence_number, n);
+ }
WriteToClient (client, sizeof (xXevieStartReply), (char *)&rep);
return client->noClientException;
}
@@ -163,11 +172,16 @@ int ProcEnd (client)
register ClientPtr client;
{
xXevieEndReply rep;
+ register int n;
XevieEnd(xevieClientIndex);
rep.type = X_Reply;
+ rep.length = 0;
rep.sequence_number = client->sequence;
+ if (client->swapped) {
+ swaps(&rep.sequence_number, n);
+ }
WriteToClient (client, sizeof (xXevieEndReply), (char *)&rep);
return client->noClientException;
}
@@ -181,10 +195,15 @@ int ProcSend (client)
xEvent *xE;
OsCommPtr oc;
static unsigned char lastDetail = 0, lastType = 0;
+ register int n;
xE = (xEvent *)&stuff->event;
rep.type = X_Reply;
+ rep.length = 0;
rep.sequence_number = client->sequence;
+ if (client->swapped) {
+ swaps(&rep.sequence_number, n);
+ }
WriteToClient (client, sizeof (xXevieSendReply), (char *)&rep);
switch(xE->u.u.type) {
@@ -216,10 +235,15 @@ int ProcSelectInput (client)
{
REQUEST (xXevieSelectInputReq);
xXevieSelectInputReply rep;
+ register int n;
xevieMask = (long)stuff->event_mask;
rep.type = X_Reply;
+ rep.length = 0;
rep.sequence_number = client->sequence;
+ if (client->swapped) {
+ swaps(&rep.sequence_number, n);
+ }
WriteToClient (client, sizeof (xXevieSelectInputReply), (char *)&rep);
return client->noClientException;
}
@@ -308,7 +332,7 @@ int SProcSelectInput (client)
REQUEST (xXevieSelectInputReq);
swaps (&stuff->length, n);
- REQUEST_AT_LEAST_SIZE (xXevieSendReq);
+ REQUEST_AT_LEAST_SIZE (xXevieSelectInputReq);
swapl(&stuff->event_mask, n);
return ProcSelectInput (client);
}