]> git.sesse.net Git - vlc/blobdiff - modules/video_output/xcb/x11.c
Fixed initial fullscreen support in XCB vout display modules.
[vlc] / modules / video_output / xcb / x11.c
index 8bc8a87d6122c982733e15ef213a884bd55c87b8..225594bc7c00343e11062385760c6e5482f32767 100644 (file)
@@ -295,8 +295,11 @@ static int Open (vlc_object_t *obj)
     vd->manage = Manage;
 
     /* */
-    vout_display_SendEventFullscreen (vd, false);
-    vout_display_SendEventDisplaySize (vd, width, height, false);
+    bool is_fullscreen = vd->cfg->is_fullscreen;
+    if (is_fullscreen && vout_window_SetFullScreen (p_sys->embed, true))
+        is_fullscreen = false;
+    vout_display_SendEventFullscreen (vd, is_fullscreen);
+    vout_display_SendEventDisplaySize (vd, width, height, is_fullscreen);
 
     return VLC_SUCCESS;