mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
3e69c5546b
commit
210cf85fdc
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue