diff libvo/x11_common.c @ 18715:30d7ddf08889

Fix window position when changing videos while in fullscreen and for window managers that modify position on Map. Oked by Alexander Strasser.
author reimar
date Thu, 15 Jun 2006 08:00:37 +0000
parents 6233f00d61c8
children a943bc3f26c8
line wrap: on
line diff
--- a/libvo/x11_common.c	Wed Jun 14 22:22:34 2006 +0000
+++ b/libvo/x11_common.c	Thu Jun 15 08:00:37 2006 +0000
@@ -1512,6 +1512,8 @@
         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);
 }