waylandsink: make gst_wl_window_is_toplevel aware of XDG shell

This commit is contained in:
Andrey Konovalov 2019-04-09 21:32:36 +03:00
parent f3e7469094
commit 88bee1a322

View file

@ -360,7 +360,10 @@ gst_wl_window_is_toplevel (GstWlWindow * window)
{
g_return_val_if_fail (window != NULL, FALSE);
return (window->wl_shell_surface != NULL);
if (window->display->xdg_wm_base)
return (window->xdg_toplevel != NULL);
else
return (window->wl_shell_surface != NULL);
}
static void