mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
Always use vo_x11_sizehint function ( even when going fullscreen ) to
reflect at least the window aspect behaviour. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14798 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
df48e121b0
commit
bc52a8e25b
@ -329,7 +329,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
ExposureMask)));
|
||||
XSetStandardProperties(mDisplay, vo_window, hello, hello, None,
|
||||
NULL, 0, &hint);
|
||||
XSetWMNormalHints(mDisplay, vo_window, &hint);
|
||||
vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0);
|
||||
XMapWindow(mDisplay, vo_window);
|
||||
if (flags & 1)
|
||||
vo_x11_fullscreen();
|
||||
@ -338,8 +338,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
#ifdef HAVE_XINERAMA
|
||||
vo_x11_xinerama_move(mDisplay, vo_window);
|
||||
#endif
|
||||
vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height,
|
||||
0);
|
||||
}
|
||||
} else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user