minimize on focus loss on windows or macos

master
Lee Salzman 2013-03-07 21:37:23 +02:00
parent 7ecc46c028
commit f2b02735eb
1 changed files with 2 additions and 0 deletions

View File

@ -1100,7 +1100,9 @@ int main(int argc, char **argv)
logoutf("init: video");
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "0");
#if !defined(WIN32) && !defined(__APPLE__)
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
#endif
setupscreen();
SDL_ShowCursor(SDL_FALSE);
SDL_StopTextInput(); // workaround for spurious text-input events getting sent on first text input toggle?