mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 05:50:06 +01:00
XQuartz: appledri: Correct byte swapping in event notifications
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit dc054fefc5)
This commit is contained in:
parent
1a9346f62c
commit
fa85f7811e
1 changed files with 3 additions and 1 deletions
|
|
@ -541,9 +541,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue