changeset 4438:e01ee848935f

grr, 10l. vo_x11_uninit: close display only if window not created by GUI
author alex
date Thu, 31 Jan 2002 11:26:29 +0000
parents f5fc7e9bac38
children 682af066d7bf
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Jan 31 11:15:54 2002 +0000
+++ b/libvo/x11_common.c	Thu Jan 31 11:26:29 2002 +0000
@@ -382,8 +382,6 @@
 
 int vo_x11_uninit(Display *display, Window window)
 {
-    XUnmapWindow(display, window);
-
 #ifdef HAVE_NEW_GUI
     /* destroy window only if it's not controlled by GUI */
     if (vo_window == None)
@@ -392,9 +390,8 @@
 	/* and -wid is set */
 	if (!(WinID > 0))
 	    XDestroyWindow(display, window);
+	XCloseDisplay(display);
     }
-
-    XCloseDisplay(display);
     return(1);
 }