Index: libvo/vo_xmga.c =================================================================== --- libvo/vo_xmga.c (revision 23613) +++ libvo/vo_xmga.c (working copy) @@ -235,10 +235,10 @@ vo_x11_classhint(mDisplay, vo_window, "xmga"); vo_hidecursor(mDisplay, vo_window); vo_x11_sizehint(vo_dx, vo_dy, vo_dwidth, vo_dheight, 0); + vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); XStoreName(mDisplay, vo_window, mTitle); XMapWindow(mDisplay, vo_window); - vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); if (flags & VOFLAG_FULLSCREEN) vo_x11_fullscreen(); Index: libvo/vo_xvidix.c =================================================================== --- libvo/vo_xvidix.c (revision 23613) +++ libvo/vo_xvidix.c (working copy) @@ -347,10 +347,10 @@ vo_x11_classhint(mDisplay, vo_window, "xvidix"); vo_hidecursor(mDisplay, vo_window); vo_x11_sizehint(vo_dx, vo_dy, vo_dwidth, vo_dheight, 0); + vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); XStoreName(mDisplay, vo_window, title); XMapWindow(mDisplay, vo_window); - vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); if (flags & VOFLAG_FULLSCREEN) vo_x11_fullscreen(); Index: libvo/vo_xvmc.c =================================================================== --- libvo/vo_xvmc.c (revision 23613) +++ libvo/vo_xvmc.c (working copy) @@ -708,8 +708,8 @@ | ButtonPressMask | ButtonReleaseMask)) ); XSetStandardProperties(mDisplay, vo_window, hello, hello, None, NULL, 0, &hint); XSetWMNormalHints( mDisplay,vo_window,&hint ); + vo_x11_nofs_sizepos(hint.x, hint.y, hint.width, hint.height); 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_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); Index: libvo/vo_xv.c =================================================================== --- libvo/vo_xv.c (revision 23613) +++ libvo/vo_xv.c (working copy) @@ -328,8 +328,8 @@ XSetStandardProperties(mDisplay, vo_window, hello, hello, None, NULL, 0, &hint); vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0); + vo_x11_nofs_sizepos(hint.x, hint.y, hint.width, hint.height); XMapWindow(mDisplay, vo_window); - vo_x11_nofs_sizepos(hint.x, hint.y, hint.width, hint.height); if (flags & VOFLAG_FULLSCREEN) vo_x11_fullscreen(); } else Index: libvo/vo_gl.c =================================================================== --- libvo/vo_gl.c (revision 23613) +++ libvo/vo_gl.c (working copy) @@ -508,6 +508,7 @@ XSetStandardProperties(mDisplay, vo_window, title, title, None, NULL, 0, &hint); /* Set the size hints. */ vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0); + vo_x11_nofs_sizepos(vo_dx, vo_dy, d_width, d_height); /* Map window. */ XMapWindow(mDisplay, vo_window); @@ -523,10 +524,11 @@ vo_x11_selectinput_witherr(mDisplay, vo_window, StructureNotifyMask | KeyPressMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask); + } else { + vo_x11_nofs_sizepos(vo_dx, vo_dy, d_width, d_height); } if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop); - vo_x11_nofs_sizepos(vo_dx, vo_dy, d_width, d_height); if (vo_fs ^ (flags & VOFLAG_FULLSCREEN)) vo_x11_fullscreen(); #endif Index: libvo/vo_x11.c =================================================================== --- libvo/vo_x11.c (revision 23613) +++ libvo/vo_x11.c (working copy) @@ -451,6 +451,7 @@ vo_x11_classhint(mDisplay, vo_window, "x11"); vo_hidecursor(mDisplay, vo_window); vo_x11_sizehint(vo_dx, vo_dy, vo_dwidth, vo_dheight, 0); + vo_x11_nofs_sizepos(vo_dx, vo_dy, vo_dwidth, vo_dheight); XSelectInput(mDisplay, vo_window, StructureNotifyMask); XStoreName(mDisplay, vo_window, title); XMapWindow(mDisplay, vo_window); @@ -462,7 +463,6 @@ 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 Index: libvo/vo_gl2.c =================================================================== --- libvo/vo_gl2.c (revision 23613) +++ libvo/vo_gl2.c (working copy) @@ -702,6 +702,8 @@ vo_x11_classhint( mDisplay,vo_window,"gl2" ); vo_hidecursor(mDisplay,vo_window); + vo_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); + vo_x11_nofs_sizepos(vo_dx, vo_dy, d_width, d_height); XSelectInput(mDisplay, vo_window, StructureNotifyMask); @@ -711,7 +713,6 @@ /* Map window. */ XMapWindow(mDisplay, vo_window); - vo_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); XClearWindow(mDisplay,vo_window); /* Wait for map. */ @@ -727,8 +728,9 @@ vo_x11_selectinput_witherr(mDisplay, vo_window, StructureNotifyMask | KeyPressMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask ); + } else { + vo_x11_nofs_sizepos(vo_dx, vo_dy, d_width, d_height); } - vo_x11_nofs_sizepos(vo_dx, vo_dy, d_width, d_height); if (vo_fs ^ (flags & VOFLAG_FULLSCREEN)) vo_x11_fullscreen();