xquartz: applewm: drop redundant dispatcher for swapped case

There's nothing actually do be done by the swapped dispatcher, the
original already does everything on its own.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-25 13:36:38 +02:00
committed by Enrico Weigelt
parent 9353255c9d
commit 9a2dc644b7

View File

@@ -676,31 +676,6 @@ SNotifyEvent(xAppleWMNotifyEvent *from, xAppleWMNotifyEvent *to)
cpswapl(from->arg, to->arg);
}
static int
SProcAppleWMQueryVersion(register ClientPtr client)
{
return ProcAppleWMQueryVersion(client);
}
static int
SProcAppleWMDispatch(register ClientPtr client)
{
REQUEST(xReq);
/* It is bound to be non-local when there is byte swapping */
if (!client->local)
return WMErrorBase + AppleWMClientNotLocal;
/* only local clients are allowed WM access */
switch (stuff->data) {
case X_AppleWMQueryVersion:
return SProcAppleWMQueryVersion(client);
default:
return BadRequest;
}
}
void
AppleWMExtensionInit(AppleWMProcsPtr procsPtr)
{
@@ -715,7 +690,7 @@ AppleWMExtensionInit(AppleWMProcsPtr procsPtr)
AppleWMNumberEvents,
AppleWMNumberErrors,
ProcAppleWMDispatch,
SProcAppleWMDispatch,
ProcAppleWMDispatch,
NULL,
StandardMinorOpcode))) {
size_t i;