From 88bee1a322508e3e87542bb460da7588fb7e67dd Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 9 Apr 2019 21:32:36 +0300 Subject: [PATCH] waylandsink: make gst_wl_window_is_toplevel aware of XDG shell --- ext/wayland/wlwindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index 0a1c156013..77b2d81d45 100644 --- a/ext/wayland/wlwindow.c +++ b/ext/wayland/wlwindow.c @@ -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 -- 2.34.1