0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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

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;
}