xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 7 07:56:57 UTC 2025
hw/xwayland/xwayland.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c445167da63a3ab454b79f6c99a7fb5bf46ab0bd
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date: Mon Mar 31 14:39:35 2025 +0200
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 at metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1878>
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;
}
More information about the xorg-commit
mailing list