minimize on focus loss on windows or macos
parent
7ecc46c028
commit
f2b02735eb
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue