mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
waylandsink: make gst_wl_window_is_toplevel aware of XDG shell
This commit is contained in:
parent
f3e7469094
commit
88bee1a322
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue