diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2013-03-06 18:09:35 +0100 |
---|---|---|
committer | Rudolf Polzer <divverent@xonotic.org> | 2013-03-06 18:10:20 +0100 |
commit | fe4213b164ad19bd94273cb179ee7c61f6094b59 (patch) | |
tree | 44032c52b2fda42ee836570935c0c506a256e50b | |
parent | c6e10611610269aa23edba0c2aa2eb808d1c3e63 (diff) | |
download | mpv-fe4213b164ad19bd94273cb179ee7c61f6094b59.tar.bz2 mpv-fe4213b164ad19bd94273cb179ee7c61f6094b59.tar.xz |
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).
-rw-r--r-- | video/out/vo_sdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index fa9b593b55..9f6cadacc3 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -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", |