xwayland: no need to use WriteReplyToClient()
The WriteReplyToClient() macro is used for cases where byte swapping
is implemented in a separate callback function (set in a global vector
table). Since Xwl extension doesn't have such a callback, but does the
byte swapping directly in it's request handlers, there's no need to
call the WriteReplyToClient() macro - we can use WriteToClient() instead.
Fixes: 2700bc6045
- xwayland: add support for the XWAYLAND extension
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1878>
This commit is contained in:
parent
32b3328e49
commit
c445167da6
|
@ -373,7 +373,7 @@ ProcXwlQueryVersion(ClientPtr client)
|
|||
swaps(&reply.minorVersion);
|
||||
}
|
||||
|
||||
WriteReplyToClient(client, sizeof(reply), &reply);
|
||||
WriteToClient(client, sizeof(reply), &reply);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue