changeset 4436:0c2d2aaf9f86

added vo_x11_uninit
author alex
date Thu, 31 Jan 2002 11:04:41 +0000
parents c012c026d0e8
children f5fc7e9bac38
files libvo/x11_common.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Jan 31 10:29:46 2002 +0000
+++ b/libvo/x11_common.c	Thu Jan 31 11:04:41 2002 +0000
@@ -238,6 +238,18 @@
  return 1;
 }
 
+int vo_x11_uninit(Display *display, Window window)
+{
+    XUnmapWindow(display, window);
+
+    /* don't destroy window if -wid specified */
+    if (!(WinID > 0))
+	XDestroyWindow(display, window);
+
+    XCloseDisplay(display);
+    return(1);
+}
+
 #include "../linux/keycodes.h"
 #include "wskeys.h"