From 97fc74e2048d9d0fb124303b8cbc84236ec31ec9 Mon Sep 17 00:00:00 2001 From: albeu Date: Fri, 24 May 2002 21:56:58 +0000 Subject: [PATCH] Let X destroy the window git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6180 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index d8952ff22b..546861ddfc 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -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; }