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:
1 parent
5e849afece
commit
97fc74e204
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user