diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-15 08:00:37 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-15 08:00:37 +0000 |
commit | 37ee8c83cbdb9b68b345ae8063cd50f7f84f64e2 (patch) | |
tree | 3a1fdba3fb047ebd78b7c595087a12ef989f03fb /libvo/vo_xv.c | |
parent | d4b348d3ef7b68d02ce40fd202843575a0d1d9fc (diff) | |
download | mpv-37ee8c83cbdb9b68b345ae8063cd50f7f84f64e2.tar.bz2 mpv-37ee8c83cbdb9b68b345ae8063cd50f7f84f64e2.tar.xz |
Fix window position when changing videos while in fullscreen and for
window managers that modify position on Map. Oked by Alexander Strasser.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18718 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index b50f1001e3..7e7a4655f5 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -348,15 +348,14 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, NULL, 0, &hint); vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0); XMapWindow(mDisplay, vo_window); + vo_x11_nofs_sizepos(hint.x, hint.y, hint.width, hint.height); if (flags & VOFLAG_FULLSCREEN) vo_x11_fullscreen(); } else { // vo_fs set means we were already at fullscreen vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0); - if (!vo_fs) - XMoveResizeWindow(mDisplay, vo_window, hint.x, hint.y, - hint.width, hint.height); + vo_x11_nofs_sizepos(hint.x, hint.y, hint.width, hint.height); if (flags & VOFLAG_FULLSCREEN && !vo_fs) vo_x11_fullscreen(); // handle -fs on non-first file } |