[MPlayer-dev-eng] [PATCH] libvo/x11_common: resize window before mapping it.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Feb 6 22:28:44 CET 2013

On 6 Feb 2013, at 21:18, Nicolas George <nicolas.george at normalesup.org> wrote:
> L'octidi 18 pluviôse, an CCXXI, wm4 a écrit :
>> There's a simpler way: destroy the hidden window after probing for
>> OpenGL, and recreate the window when it's actually needed. You don't
>> need to change anything in the X11 code, just change vo_gl (or was it
>> gl_common) to tear down the X11 state completely after probing. I did
>> that in various mplayer forks and it works well.
> Thanks for the advice.
> I usually try to avoid Gordian knot-style solutions if I can, though.
> Also, I realize by looking carefully that -geometry +x+y is implemented, for
> various X11-based VOs, by letting the window be positioned at the WM's
> decision and then moving it. I would like to understand exactly what is
> going on.

Probably the result of a "war" between MPlayer wanting the window to be placed according to its rules, and window managers deciding that their placement algorithms are best and on purpose adding code to ignore what MPlayer requests. Which looks like a bug and results in "bug workarounds" in MPlayer and so on ad infinitum.
At least once something in that style actually happened.

More information about the MPlayer-dev-eng mailing list