mirror of https://github.com/mpv-player/mpv
Let X destroy the window
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6180 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5e849afece
commit
97fc74e204
|
@ -544,8 +544,10 @@ void vo_x11_uninit()
|
||||||
if(vo_window!=None){
|
if(vo_window!=None){
|
||||||
XClearWindow( mDisplay,vo_window );
|
XClearWindow( mDisplay,vo_window );
|
||||||
if (WinID < 0){
|
if (WinID < 0){
|
||||||
|
XEvent xev;
|
||||||
XUnmapWindow( mDisplay,vo_window );
|
XUnmapWindow( mDisplay,vo_window );
|
||||||
XDestroyWindow(mDisplay, vo_window);
|
XDestroyWindow(mDisplay, vo_window);
|
||||||
|
do { XNextEvent( mDisplay,&xev ); } while ( xev.type != DestroyNotify || xev.xdestroywindow.event != vo_window );
|
||||||
}
|
}
|
||||||
vo_window=None;
|
vo_window=None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue