mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 20:58:52 +00:00
XQuartz: appledri: Correct byte swapping in event notifications
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -529,9 +529,11 @@ AppleDRIExtensionInit(void)
|
||||
SProcAppleDRIDispatch,
|
||||
AppleDRIResetProc,
|
||||
StandardMinorOpcode))) {
|
||||
size_t i;
|
||||
DRIReqCode = (unsigned char)extEntry->base;
|
||||
DRIErrorBase = extEntry->errorBase;
|
||||
DRIEventBase = extEntry->eventBase;
|
||||
EventSwapVector[DRIEventBase] = (EventSwapPtr) SNotifyEvent;
|
||||
for (i=0; i < AppleDRINumberEvents; i++)
|
||||
EventSwapVector[DRIEventBase + i] = (EventSwapPtr) SNotifyEvent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user