]> git.sesse.net Git - vlc/blobdiff - modules/video_output/gl.c
gl: initialize fullscreen state correctly
[vlc] / modules / video_output / gl.c
index defe4797a828697b05b4325804b84f5403d6893a..3d1d19a7ee49d3bb29fd7871d8eaf5b5f71d136e 100644 (file)
@@ -152,6 +152,11 @@ static int Open (vlc_object_t *obj)
     if (sys->vgl == NULL)
         goto error;
 
+    bool fs = vd->cfg->is_fullscreen;
+    if (vout_window_SetFullScreen (sys->gl->surface, fs))
+        fs = false;
+    vout_display_SendEventFullscreen (vd, fs);
+
     vd->sys = sys;
     vd->info.has_pictures_invalid = false;
     vd->info.has_event_thread = false;