summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/x11_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index df72ebbfdb..16a97d578c 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1135,6 +1135,12 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y,
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);