vo_sdl: we don't want to minize the window when losing focus

Because: this makes multi-monitor use entirely useless (as soon as
pointer leaves left screen, mpv gets auto minimized).
This commit is contained in:
Rudolf Polzer 2013-03-06 18:09:35 +01:00
parent c6e1061161
commit fe4213b164
1 changed files with 2 additions and 0 deletions

View File

@ -770,6 +770,8 @@ static int preinit(struct vo *vo, const char *arg)
// predefine SDL defaults (SDL env vars shall override)
SDL_SetHintWithPriority(SDL_HINT_RENDER_SCALE_QUALITY, "1",
SDL_HINT_DEFAULT);
SDL_SetHintWithPriority(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0",
SDL_HINT_DEFAULT);
// predefine MPV options (SDL env vars shall be overridden)
SDL_SetHintWithPriority(SDL_HINT_RENDER_VSYNC, vc->vsync ? "1" : "0",