src/video/cocoa/SDL_cocoawindow.m
changeset 11447 f76299105635
parent 11436 37b2fcd8fc8c
child 11482 05aa6d232dca
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Sep 03 16:36:22 2017 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Sep 03 17:33:49 2017 -0400
     1.3 @@ -796,6 +796,13 @@
     1.4              s_moveHack = SDL_GetTicks();
     1.5          }
     1.6  
     1.7 +        /* Force the size change event in case it was delivered earlier
     1.8 +           while the window was still animating into place.
     1.9 +         */
    1.10 +        window->w = 0;
    1.11 +        window->h = 0;
    1.12 +        [self windowDidResize:aNotification];
    1.13 +
    1.14          /* FIXME: Why does the window get hidden? */
    1.15          if (window->flags & SDL_WINDOW_SHOWN) {
    1.16              Cocoa_ShowWindow(SDL_GetVideoDevice(), window);