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/x11_common.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/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 9faeb741b8..199992eeac 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1512,6 +1512,8 @@ void vo_x11_fullscreen(void) vo_x11_setlayer(mDisplay, vo_window, vo_ontop); XMapRaised(mDisplay, vo_window); + if ( ! (vo_fs_type & vo_wm_FULLSCREEN) ) // some WMs change window pos on map + XMoveResizeWindow(mDisplay, vo_window, x, y, w, h); XRaiseWindow(mDisplay, vo_window); XFlush(mDisplay); } |