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

vout: initialize window state (above or below) straight away

parent 27ecaf3a
......@@ -174,7 +174,15 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
.height = cfg->fmt->i_visible_height,
};
vout->p->window = vout_display_window_New(vout, &wcfg);
vout_window_t *window = vout_display_window_New(vout, &wcfg);
if (window != NULL)
{
if (var_InheritBool(vout, "video-wallpaper"))
vout_window_SetState(window, VOUT_WINDOW_STATE_BELOW);
else if (var_InheritBool(vout, "video-on-top"))
vout_window_SetState(window, VOUT_WINDOW_STATE_ABOVE);
}
vout->p->window = window;
} else
vout->p->window = NULL;
......
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