XQuartz: applewm: Correct byte swapping in event notifications
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
5701ab4a44
commit
d5fee2b638
|
@ -725,10 +725,12 @@ AppleWMExtensionInit(
|
||||||
NULL,
|
NULL,
|
||||||
StandardMinorOpcode)))
|
StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
|
size_t i;
|
||||||
WMReqCode = (unsigned char)extEntry->base;
|
WMReqCode = (unsigned char)extEntry->base;
|
||||||
WMErrorBase = extEntry->errorBase;
|
WMErrorBase = extEntry->errorBase;
|
||||||
WMEventBase = extEntry->eventBase;
|
WMEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
for (i=0; i < AppleWMNumberEvents; i++)
|
||||||
|
EventSwapVector[WMEventBase + i] = (EventSwapPtr) SNotifyEvent;
|
||||||
appleWMProcs = procsPtr;
|
appleWMProcs = procsPtr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue