Skip to content

Commit

Permalink
Fix window appearing blank white when hidden then shown in dock on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Sep 7, 2019
1 parent bdaae94 commit a3b2f7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Window.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1696,8 +1700,9 @@ static void Window_ConnectEvents(void) {
{ kEventClassWindow, kEventWindowBoundsChanged },
{ kEventClassWindow, kEventWindowActivated },
{ kEventClassWindow, kEventWindowDeactivated },

{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
{ kEventClassWindow, kEventWindowDrawContent },

{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
{ kEventClassAppleEvent, kEventAppleEvent }
};
static EventTypeSpec appEventTypes[] = {
Expand Down

0 comments on commit a3b2f7a

Please sign in to comment.