Commit b529f60c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

window: pass fullscreen state at initialization

parent c41b9606
...@@ -164,6 +164,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object, ...@@ -164,6 +164,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
if (vout->p->splitter_name == NULL) { if (vout->p->splitter_name == NULL) {
vout_window_cfg_t wcfg = { vout_window_cfg_t wcfg = {
.is_standalone = !var_InheritBool(vout, "embedded-video"), .is_standalone = !var_InheritBool(vout, "embedded-video"),
.is_fullscreen = var_GetBool(vout, "fullscreen"),
.type = VOUT_WINDOW_TYPE_INVALID, .type = VOUT_WINDOW_TYPE_INVALID,
// TODO: take pixel A/R, crop and zoom into account // TODO: take pixel A/R, crop and zoom into account
#ifdef __APPLE__ #ifdef __APPLE__
...@@ -177,8 +178,6 @@ static vout_thread_t *VoutCreate(vlc_object_t *object, ...@@ -177,8 +178,6 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
vout_window_t *window = vout_display_window_New(vout, &wcfg); vout_window_t *window = vout_display_window_New(vout, &wcfg);
if (window != NULL) if (window != NULL)
{ {
if (var_InheritBool(vout, "fullscreen"))
vout_window_SetFullScreen(window, true);
if (var_InheritBool(vout, "video-wallpaper")) if (var_InheritBool(vout, "video-wallpaper"))
vout_window_SetState(window, VOUT_WINDOW_STATE_BELOW); vout_window_SetState(window, VOUT_WINDOW_STATE_BELOW);
else if (var_InheritBool(vout, "video-on-top")) else if (var_InheritBool(vout, "video-on-top"))
......
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