waylandsink: Fix for missing initial configure
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 2 Jun 2021 18:17:13 +0000 (14:17 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 2 Jun 2021 18:17:13 +0000 (14:17 -0400)
commit56b56e43f30a6aecf39cc0b02688a88d6130c947
tree0da17f5c3bd5af0fcb2d73b5d6b7d788d583c969
parenta01883013a4506844d05659cdd915d69926b8709
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>
ext/wayland/wlwindow.c