From 9a2dc644b78c04fc6fb1f879d4b95ebb2d4ba5c7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 25 Sep 2025 13:36:38 +0200 Subject: [PATCH] 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 --- hw/xquartz/applewm.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c index dfd3209d4e..b87bb15a77 100644 --- a/hw/xquartz/applewm.c +++ b/hw/xquartz/applewm.c @@ -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;