[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.87,1.88

Alban Bedel CVS albeu at mplayerhq.hu
Fri May 24 23:57:07 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv2612/libvo

Modified Files:
	x11_common.c 
Log Message:
Let X destroy the window


Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- x11_common.c	23 May 2002 15:37:27 -0000	1.87
+++ x11_common.c	24 May 2002 21:56:58 -0000	1.88
@@ -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;
 	}




More information about the MPlayer-cvslog mailing list