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>
This commit is contained in:
Nicolas Dufresne 2021-07-14 16:09:41 -04:00 committed by GStreamer Marge Bot
parent 3e69c5546b
commit 210cf85fdc

View file

@ -271,6 +271,9 @@ gst_gl_window_x11_close (GstGLWindow * window)
XUnmapWindow (window_x11->device, window_x11->internal_win_id);
XDestroyWindow (window_x11->device, window_x11->internal_win_id);
/* Ensure everything is sent immediatly */
XSync (window_x11->device, FALSE);
}
XFree (window_x11->visual_info);