1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

player: make --force-window create the window immediately on start

Before this change, window creation was delayed until the video was
initialized. This guaranteed that the first window size was that of the
video, so the WM would place it correctly.

Some time ago, it was requested on the IRC channel that --force-window
should not do this. Sometimes, it can take a while until video is
initialized, e.g. when youtube-dl is used (which incurs lots of network
delay). In this case, it's awkward that it takes so long until a window
(any window) is shown.

On the other hand, this can cause incorrect window placement with some
WMs. We simply hope that this won't happen with modern WMs. (Although it
does with the WM I use, crappy old IceWM.)
This commit is contained in:
wm4 2015-02-03 23:19:38 +01:00
parent c3c714b059
commit acc5e8f574

View File

@ -457,6 +457,7 @@ int mp_initialize(struct MPContext *mpctx)
"the selected video_out (-vo) device.\n");
return -1;
}
handle_force_window(mpctx, false);
mpctx->mouse_cursor_visible = true;
}