1From 05f218c99022b903827530ffa0b57db4b2bc106c Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Mon, 15 Jun 2020 10:01:54 +0800 4Subject: [PATCH 06/41] waylandsink: Support place below/above 5 6Set environment WAYLANDSINK_PLACE_ABOVE=1 to place it above parent. 7 8Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 9--- 10 gst-libs/gst/wayland/gstwlwindow.c | 7 +++++++ 11 1 file changed, 7 insertions(+) 12 13diff --git a/gst-libs/gst/wayland/gstwlwindow.c b/gst-libs/gst/wayland/gstwlwindow.c 14index 4aa53c3..e7c429c 100644 15--- a/gst-libs/gst/wayland/gstwlwindow.c 16+++ b/gst-libs/gst/wayland/gstwlwindow.c 17@@ -24,6 +24,8 @@ 18 #include <config.h> 19 #endif 20 21+#include <stdlib.h> 22+ 23 #include "gstwlwindow.h" 24 25 #include "fullscreen-shell-unstable-v1-client-protocol.h" 26@@ -365,6 +367,11 @@ gst_wl_window_new_in_surface (GstWlDisplay * display, 27 (display), priv->area_surface, parent); 28 wl_subsurface_set_desync (priv->area_subsurface); 29 30+ if (g_getenv ("WAYLANDSINK_PLACE_ABOVE")) 31+ wl_subsurface_place_above (priv->area_subsurface, parent); 32+ else 33+ wl_subsurface_place_below (priv->area_subsurface, parent); 34+ 35 wl_surface_commit (parent); 36 37 return self; 38-- 392.20.1 40 41