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

display: clean vout_display_IsWindowed() up

Do not attach and detach the window. Just check if it is there.
parent e5c70cf7
......@@ -392,10 +392,7 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd,
static inline bool vout_display_IsWindowed(vout_display_t *vd)
{
vout_window_t *window = vout_display_NewWindow(vd, VOUT_WINDOW_TYPE_INVALID);
if (window != NULL)
vout_display_DeleteWindow(vd, window);
return window != NULL;
return vd->cfg->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