gl: x11: Issue XSync to close our top level window
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 14 Jul 2021 20:09:41 +0000 (16:09 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Jul 2021 16:22:48 +0000 (16:22 +0000)
commit210cf85fdc77b91b02b02fe1449d90f91f3dd167
tree2c94232dbf472c2fc12cde2609006ba5ec67d637
parent3e69c5546b0e77c07c10396f64fb621146b44f89
gl: x11: Issue XSync to close our top level window

This is similar action as when the window handle is modified, we now issue
XSync whenever we destroy our internal window. This ensure that the window is
properly closed before the connecgtion is dropped.

Fixes #815

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1226>
gst-libs/gst/gl/x11/gstglwindow_x11.c