# HG changeset patch # User reimar # Date 1236155874 0 # Node ID bd24ac0d9fd8e7c1bfa17e522a1e873fd13396e1 # Parent 7b90cac39182559311b14b95f54d976d8892a95d Make sure vo_x11_create_vo_window sets vo_dwidth and vo_dheight right when we were in fullscreen mode and stay there. diff -r 7b90cac39182 -r bd24ac0d9fd8 libvo/x11_common.c --- a/libvo/x11_common.c Wed Mar 04 08:11:42 2009 +0000 +++ b/libvo/x11_common.c Wed Mar 04 08:37:54 2009 +0000 @@ -1135,6 +1135,12 @@ vo_x11_nofs_sizepos(vo_dx, vo_dy, width, height); if (!!vo_fs != !!(flags & VOFLAG_FULLSCREEN)) vo_x11_fullscreen(); + else if (vo_fs) { + // if we are already in fullscreen do not switch back and forth, just + // set the size values right. + vo_dwidth = vo_screenwidth; + vo_dheight = vo_screenheight; + } final: if (vo_gc != None) XFreeGC(mDisplay, vo_gc);