waylandsink: Commit the parent after creating subsurface
authorJeffy Chen <jeffy.chen@rock-chips.com>
Mon, 25 Nov 2019 11:08:48 +0000 (19:08 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 26 Nov 2019 00:38:49 +0000 (00:38 +0000)
We should commit the parent to activate new subsurface, this is
documented in the protocol.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
ext/wayland/wlwindow.c

index 9ebbcaf..3249d8e 100644 (file)
@@ -344,6 +344,8 @@ gst_wl_window_new_in_surface (GstWlDisplay * display,
       window->area_surface, parent);
   wl_subsurface_set_desync (window->area_subsurface);
 
+  wl_surface_commit (parent);
+
   return window;
 }