Commit e5d23eb8 authored by Laurent Aimar's avatar Laurent Aimar

Fixed initial fullscreen support in XCB vout display modules.

parent 84d6990a
...@@ -388,8 +388,11 @@ static int Open (vlc_object_t *obj) ...@@ -388,8 +388,11 @@ static int Open (vlc_object_t *obj)
vd->manage = Manage; vd->manage = Manage;
/* */ /* */
vout_display_SendEventFullscreen (vd, false); bool is_fullscreen = vd->cfg->is_fullscreen;
vout_display_SendEventDisplaySize (vd, width, height, false); if (is_fullscreen && vout_window_SetFullScreen (sys->embed, true))
is_fullscreen = false;
vout_display_SendEventFullscreen (vd, is_fullscreen);
vout_display_SendEventDisplaySize (vd, width, height, is_fullscreen);
return VLC_SUCCESS; return VLC_SUCCESS;
......
...@@ -295,8 +295,11 @@ static int Open (vlc_object_t *obj) ...@@ -295,8 +295,11 @@ static int Open (vlc_object_t *obj)
vd->manage = Manage; vd->manage = Manage;
/* */ /* */
vout_display_SendEventFullscreen (vd, false); bool is_fullscreen = vd->cfg->is_fullscreen;
vout_display_SendEventDisplaySize (vd, width, height, false); 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; return VLC_SUCCESS;
......
...@@ -532,10 +532,13 @@ static int Open (vlc_object_t *obj) ...@@ -532,10 +532,13 @@ static int Open (vlc_object_t *obj)
vd->manage = Manage; vd->manage = Manage;
/* */ /* */
vout_display_SendEventFullscreen (vd, 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);
unsigned width, height; unsigned width, height;
if (!GetWindowSize (p_sys->embed, conn, &width, &height)) if (!GetWindowSize (p_sys->embed, conn, &width, &height))
vout_display_SendEventDisplaySize (vd, width, height, false); vout_display_SendEventDisplaySize (vd, width, height, is_fullscreen);
return VLC_SUCCESS; return VLC_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment