mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
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:
committed by
Enrico Weigelt
parent
9353255c9d
commit
9a2dc644b7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user