From acc5e8f57419debdb74234a228b44db75023e28b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 3 Feb 2015 23:19:38 +0100 Subject: 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.) --- player/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/main.c b/player/main.c index 854d1ce540..330160671a 100644 --- a/player/main.c +++ b/player/main.c @@ -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; } -- cgit v1.2.3