src/video/SDL_video.c
changeset 7269 f7a0cc4bf74d
parent 7212 81b0d4773d47
child 7360 b86947ea2749
equal deleted inserted replaced
7268:b399d0441810 7269:f7a0cc4bf74d
  2085         _this->SetWindowGammaRamp(_this, window, window->saved_gamma);
  2085         _this->SetWindowGammaRamp(_this, window, window->saved_gamma);
  2086     }
  2086     }
  2087 
  2087 
  2088     SDL_UpdateWindowGrab(window);
  2088     SDL_UpdateWindowGrab(window);
  2089 
  2089 
  2090     /* If we're fullscreen on a single-head system and lose focus, minimize */
  2090     /* If we're fullscreen and lose focus, minimize unless the hint tells us otherwise */
  2091      if ((window->flags & SDL_WINDOW_FULLSCREEN) && ShouldMinimizeOnFocusLoss() ) {
  2091      if ((window->flags & SDL_WINDOW_FULLSCREEN) && ShouldMinimizeOnFocusLoss() ) {
  2092             SDL_MinimizeWindow(window);
  2092             SDL_MinimizeWindow(window);
  2093     }
  2093     }
  2094 }
  2094 }
  2095 
  2095