dix: write out X_GrabPointer reply directly
No need for using a complex callback machinery, if we just move the little pieces of byte-swapping directly into the request handler. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
d15ea92195
commit
a492ebcb4c
|
@ -4979,7 +4979,6 @@ ProcGetInputFocus(ClientPtr client)
|
|||
int
|
||||
ProcGrabPointer(ClientPtr client)
|
||||
{
|
||||
xGrabPointerReply rep;
|
||||
DeviceIntPtr device = PickPointer(client);
|
||||
GrabPtr grab;
|
||||
GrabMask mask;
|
||||
|
@ -5019,13 +5018,17 @@ ProcGrabPointer(ClientPtr client)
|
|||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
rep = (xGrabPointerReply) {
|
||||
xGrabPointerReply rep = {
|
||||
.type = X_Reply,
|
||||
.status = status,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = 0
|
||||
};
|
||||
WriteReplyToClient(client, sizeof(xGrabPointerReply), &rep);
|
||||
|
||||
if (client->swapped) {
|
||||
swaps(&rep.sequenceNumber);
|
||||
}
|
||||
WriteToClient(client, sizeof(rep), &rep);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
|
|
@ -738,7 +738,7 @@ ReplySwapPtr ReplySwapVector[256] = {
|
|||
ReplyNotSwappd,
|
||||
ReplyNotSwappd,
|
||||
ReplyNotSwappd, /* 25 */
|
||||
(ReplySwapPtr) SGenericReply, /* SGrabPointerReply, */
|
||||
ReplyNotSwappd,
|
||||
ReplyNotSwappd,
|
||||
ReplyNotSwappd,
|
||||
ReplyNotSwappd,
|
||||
|
|
Loading…
Reference in New Issue