mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
Fix window appearing blank white when hidden then shown in dock on OSX
This commit is contained in:
parent
bdaae944b5
commit
a3b2f7aad5
@ -1559,6 +1559,10 @@ static OSStatus Window_ProcessWindowEvent(EventRef inEvent) {
|
||||
Window_Focused = false;
|
||||
Event_RaiseVoid(&WindowEvents.FocusChanged);
|
||||
return eventNotHandledErr;
|
||||
|
||||
case kEventWindowDrawContent:
|
||||
Event_RaiseVoid(&WindowEvents.Redraw);
|
||||
return eventNotHandledErr;
|
||||
}
|
||||
return eventNotHandledErr;
|
||||
}
|
||||
@ -1696,8 +1700,9 @@ static void Window_ConnectEvents(void) {
|
||||
{ kEventClassWindow, kEventWindowBoundsChanged },
|
||||
{ kEventClassWindow, kEventWindowActivated },
|
||||
{ kEventClassWindow, kEventWindowDeactivated },
|
||||
{ kEventClassWindow, kEventWindowDrawContent },
|
||||
|
||||
{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
|
||||
{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
|
||||
{ kEventClassAppleEvent, kEventAppleEvent }
|
||||
};
|
||||
static EventTypeSpec appEventTypes[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user