Commit f687ca24 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

vout: set fullscreen directly on window rather than display

(cherry picked from commit cf5332b7515b09327e535ca56685556c07925afa)

Ref #13647
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c7573b41
......@@ -1264,7 +1264,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.object;
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