# HG changeset patch # User alex # Date 1012475081 0 # Node ID 0c2d2aaf9f86f3800086a04e3ae04f22ec52ab79 # Parent c012c026d0e84712864950edeb715179049caf96 added vo_x11_uninit diff -r c012c026d0e8 -r 0c2d2aaf9f86 libvo/x11_common.c --- 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"