changeset 6179:c9ae6db39df0

Let X destroy the window
author albeu
date Fri, 24 May 2002 21:56:58 +0000
parents a31bef216c58
children 11e216bee07b
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Fri May 24 19:21:12 2002 +0000
+++ b/libvo/x11_common.c	Fri May 24 21:56:58 2002 +0000
@@ -544,8 +544,10 @@
 	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;
 	}