diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-31 11:26:29 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-31 11:26:29 +0000 |
commit | 4a370186c3c6e9eab8232272715c29e03fa752f4 (patch) | |
tree | 7e1f2923a314eb00c3eb2f33d34eeaa006cbe746 /libvo | |
parent | ad69a062aefb0616a2eb80627b5fc38e62705acf (diff) |
grr, 10l. vo_x11_uninit: close display only if window not created by GUI
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4439 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 91ef1a9658..1b77e0c765 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -382,8 +382,6 @@ void vo_x11_classhint( Display * display,Window window,char *name ){ 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 @@ int vo_x11_uninit(Display *display, Window window) /* and -wid is set */ if (!(WinID > 0)) XDestroyWindow(display, window); + XCloseDisplay(display); } - - XCloseDisplay(display); return(1); } |