diff --git a/ext/native/base/PCMain.cpp b/ext/native/base/PCMain.cpp index 9db059e2dc..9e54c8287e 100644 --- a/ext/native/base/PCMain.cpp +++ b/ext/native/base/PCMain.cpp @@ -420,6 +420,7 @@ int main(int argc, char *argv[]) { bcm_host_init(); #endif putenv((char*)"SDL_VIDEO_CENTERED=1"); + SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); std::string app_name; std::string app_name_nice;