# HG changeset patch # User alex # Date 1012476389 0 # Node ID e01ee848935fc3fbef595e3e8fea15c9bda18302 # Parent f5fc7e9bac389d57b8756b72a85e1f08b67583f5 grr, 10l. vo_x11_uninit: close display only if window not created by GUI diff -r f5fc7e9bac38 -r e01ee848935f libvo/x11_common.c --- 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); }