waylandsink: Fix for missing initial configure

We were doing our initial "empty" commit on the subsurface instead of the
toplevel surface. As an incidence, we should not have received a configure
event ever, not just on mutter. This fixes the following warning when using
mutter compositor (aka gnome-shell):

  waylandsink wlwindow.c:304:gst_wl_window_new_toplevel: The compositor did not send configure event.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2299>
This commit is contained in:
Nicolas Dufresne 2021-06-02 14:17:13 -04:00
parent a01883013a
commit 56b56e43f3

View file

@ -293,7 +293,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
/* Finally, commit the xdg_surface state as toplevel */ /* Finally, commit the xdg_surface state as toplevel */
window->configured = FALSE; window->configured = FALSE;
wl_surface_commit (window->video_surface); wl_surface_commit (window->area_surface);
wl_display_flush (display->display); wl_display_flush (display->display);
g_mutex_lock (&window->configure_mutex); g_mutex_lock (&window->configure_mutex);