src/video/cocoa/SDL_cocoawindow.m
changeset 13545 0e1178413579
parent 13541 6710fbe3b098
child 13546 d1c02a50171d
equal deleted inserted replaced
13544:c66d1c7700bd 13545:0e1178413579
  1738 Cocoa_MinimizeWindow(_THIS, SDL_Window * window)
  1738 Cocoa_MinimizeWindow(_THIS, SDL_Window * window)
  1739 { @autoreleasepool
  1739 { @autoreleasepool
  1740 {
  1740 {
  1741     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  1741     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
  1742     NSWindow *nswindow = data->nswindow;
  1742     NSWindow *nswindow = data->nswindow;
  1743 
       
  1744 printf("Cocoa_MinimizeWindow begin %u\n", (unsigned int) SDL_GetTicks());
       
  1745     if ([data->listener isInFullscreenSpaceTransition]) {
  1743     if ([data->listener isInFullscreenSpaceTransition]) {
  1746         [data->listener addPendingWindowOperation:PENDING_OPERATION_MINIMIZE];
  1744         [data->listener addPendingWindowOperation:PENDING_OPERATION_MINIMIZE];
  1747     } else {
  1745     } else {
  1748         [nswindow miniaturize:nil];
  1746         [nswindow miniaturize:nil];
  1749     }
  1747     }