diff options
Diffstat (limited to 'hw/xquartz/applewm.c')
-rw-r--r-- | hw/xquartz/applewm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c index 2f26e61d9..2dfc35a8e 100644 --- a/hw/xquartz/applewm.c +++ b/hw/xquartz/applewm.c @@ -727,10 +727,12 @@ AppleWMExtensionInit( NULL, StandardMinorOpcode))) { + size_t i; WMReqCode = (unsigned char)extEntry->base; WMErrorBase = extEntry->errorBase; WMEventBase = extEntry->eventBase; - EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent; + for (i=0; i < AppleWMNumberEvents; i++) + EventSwapVector[WMEventBase + i] = (EventSwapPtr) SNotifyEvent; appleWMProcs = procsPtr; } } |