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

vout: set fullscreen directly on window rather than display

parent 5da03f41
......@@ -1260,7 +1260,14 @@ static void ThreadStep(vout_thread_t *vout, mtime_t *duration)
static void ThreadChangeFullscreen(vout_thread_t *vout, bool fullscreen)
{
vout_SetDisplayFullscreen(vout->p->display.vd, fullscreen);
vout_window_t *window = vout->p->window;
if (window != NULL)
vout_window_SetFullScreen(window, fullscreen);
else
if (vout->p->display.vd != NULL)
vout_display_SendEvent(vout->p->display.vd,
VOUT_DISPLAY_EVENT_FULLSCREEN, fullscreen);
}
static void ThreadChangeWindowState(vout_thread_t *vout, unsigned state)
......
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