mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-06 01:10:32 +01:00
XWin: windowswm: Correct byte swapping in event notifications
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
dc054fefc5
commit
286fa9bf9b
1 changed files with 3 additions and 1 deletions
|
|
@ -629,9 +629,11 @@ winWindowsWMExtensionInit (void)
|
|||
NULL,
|
||||
StandardMinorOpcode)))
|
||||
{
|
||||
size_t i;
|
||||
WMReqCode = (unsigned char)extEntry->base;
|
||||
WMErrorBase = extEntry->errorBase;
|
||||
WMEventBase = extEntry->eventBase;
|
||||
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
||||
for (i=0; i < WindowsWMNumberEvents; i++)
|
||||
EventSwapVector[WMEventBase + i] = (EventSwapPtr) SNotifyEvent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue