src/video/cocoa/SDL_cocoawindow.m
changeset 7566 b14d00c30095
parent 7535 c515121a3df7
child 7593 20298a0d8631
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Fri Aug 02 18:25:20 2013 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sat Aug 03 02:20:00 2013 -0400
     1.3 @@ -239,6 +239,13 @@
     1.4         or resizing from a corner */
     1.5      SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_MOVED, x, y);
     1.6      SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_RESIZED, w, h);
     1.7 +
     1.8 +    const BOOL zoomed = [_data->nswindow isZoomed];
     1.9 +    if (!zoomed) {
    1.10 +        SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_RESTORED, 0, 0);
    1.11 +    } else if (zoomed) {
    1.12 +        SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
    1.13 +    }
    1.14  }
    1.15  
    1.16  - (void)windowDidMiniaturize:(NSNotification *)aNotification