diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2021-06-02 14:17:13 -0400 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-06-02 23:09:02 +0100 |
commit | 33468eb32f11fb45363acd3396d38dde313eb2a4 (patch) | |
tree | 7334e11c2fc2e8bb01c415a93484c4e6a19bd214 | |
parent | 64a5b8de8249b610c43452f4b7fadd25a0cf65e8 (diff) | |
download | gstreamer-plugins-bad-33468eb32f11fb45363acd3396d38dde313eb2a4.tar.gz |
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/2300>
-rw-r--r-- | ext/wayland/wlwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index 0cf85aa62..66a05be97 100644 --- a/ext/wayland/wlwindow.c +++ b/ext/wayland/wlwindow.c @@ -289,7 +289,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info, /* Finally, commit the xdg_surface state as toplevel */ window->configured = FALSE; - wl_surface_commit (window->video_surface); + wl_surface_commit (window->area_surface); wl_display_flush (display->display); g_mutex_lock (&window->configure_mutex); |