Skip to content
Permalink
Browse files

Fix window appearing blank white when hidden then shown in dock on OSX

  • Loading branch information...
UnknownShadow200 committed Sep 7, 2019
1 parent bdaae94 commit a3b2f7aad539e1e482588d7fa04525f166b84a99
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/Window.c
@@ -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 },

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

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

0 comments on commit a3b2f7a

Please sign in to comment.
You can’t perform that action at this time.