diff --git a/client/main.c b/client/main.c index ad0a0245..416a0e96 100644 --- a/client/main.c +++ b/client/main.c @@ -786,10 +786,11 @@ int run() ) ); + if (params.ignoreQuit) + SDL_SetHint(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1"); + if (params.fullscreen) - { SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); - } // set the compositor hint to bypass for low latency SDL_SysWMinfo wminfo; @@ -1449,4 +1450,4 @@ int main(int argc, char * argv[]) } return ret; -} \ No newline at end of file +}