From c445167da63a3ab454b79f6c99a7fb5bf46ab0bd Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 31 Mar 2025 14:39:35 +0200 Subject: [PATCH] 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 Part-of: --- hw/xwayland/xwayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index 6540ba8cb..cc85880af 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -373,7 +373,7 @@ ProcXwlQueryVersion(ClientPtr client) swaps(&reply.minorVersion); } - WriteReplyToClient(client, sizeof(reply), &reply); + WriteToClient(client, sizeof(reply), &reply); return Success; }