mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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> (cherry picked from commitc445167da6)
This commit is contained in:
committed by
Alan Coopersmith
parent
2b5a37276f
commit
00cd6ed085
@@ -365,7 +365,7 @@ ProcXwlQueryVersion(ClientPtr client)
|
||||
swaps(&reply.minorVersion);
|
||||
}
|
||||
|
||||
WriteReplyToClient(client, sizeof(reply), &reply);
|
||||
WriteToClient(client, sizeof(reply), &reply);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user