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

xdg-shell: postpone setting fullscreen

...until after the event thread is started.
There are no points in making a special case here.

Note: Some window manager may not handle a window going fullscreen at
first correctly, failing to set the correct size.
parent 902dd36b
......@@ -559,15 +559,11 @@ static int Open(vout_window_t *wnd, const vout_window_cfg_t *cfg)
wnd->display.wl = display;
wnd->control = Control;
if (cfg->is_fullscreen)
{
vout_window_SetFullScreen(wnd, NULL);
sys->fullscreen = true;
}
if (vlc_clone(&sys->thread, Thread, wnd, VLC_THREAD_PRIORITY_LOW))
goto error;
if (cfg->is_fullscreen)
vout_window_SetFullScreen(wnd, NULL);
#ifdef XDG_SHELL_UNSTABLE
if (sys->unstable)
{
......
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