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:
albeu 2002-05-24 21:56:58 +00:00
parent 5e849afece
commit 97fc74e204
1 changed files with 2 additions and 0 deletions

View File

@ -544,8 +544,10 @@ void vo_x11_uninit()
if(vo_window!=None){
XClearWindow( mDisplay,vo_window );
if (WinID < 0){
XEvent xev;
XUnmapWindow( mDisplay,vo_window );
XDestroyWindow(mDisplay, vo_window);
do { XNextEvent( mDisplay,&xev ); } while ( xev.type != DestroyNotify || xev.xdestroywindow.event != vo_window );
}
vo_window=None;
}