summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-15 08:00:37 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-15 08:00:37 +0000
commit37ee8c83cbdb9b68b345ae8063cd50f7f84f64e2 (patch)
tree3a1fdba3fb047ebd78b7c595087a12ef989f03fb /libvo/vo_x11.c
parentd4b348d3ef7b68d02ce40fd202843575a0d1d9fc (diff)
downloadmpv-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_x11.c')
-rw-r--r--libvo/vo_x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 05adbace24..1e9f8b98e0 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -424,11 +424,11 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
while (xev.type != MapNotify
|| xev.xmap.event != vo_window);
+ vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight);
if (fullscreen)
vo_x11_fullscreen();
- } else if (!fullscreen)
- XMoveResizeWindow(mDisplay, vo_window, vo_dx, vo_dy,
- vo_dwidth, vo_dheight);
+ } else
+ vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight);
}
XSync(mDisplay, False);