changeset 6180:11e216bee07b

Destroy the old win when config is called multiple times
author albeu
date Fri, 24 May 2002 21:58:05 +0000
parents c9ae6db39df0
children b2938a374993
files libvo/vo_x11.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Fri May 24 21:56:58 2002 +0000
+++ b/libvo/vo_x11.c	Fri May 24 21:58:05 2002 +0000
@@ -288,7 +288,12 @@
   else
 #endif   
    {
- 
+     if(vo_window != None) {
+       freeMyXImage();
+       XUnmapWindow( mDisplay,vo_window );
+       XDestroyWindow(mDisplay, vo_window);
+     }
+
 #ifdef HAVE_XF86VM
     if ( vm )
    {