1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Fix building with --disable-xft and add ncurses to the -v option

This commit is contained in:
Nikolas Garofil 2009-11-07 15:32:03 +01:00
parent 68ca9485da
commit ff1fab20c2
2 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,9 @@ static void print_version(void)
#ifdef IOSTATS #ifdef IOSTATS
" * iostats\n" " * iostats\n"
#endif /* IOSTATS */ #endif /* IOSTATS */
#ifdef NCURSES
" * ncurses\n"
#endif /* NCURSES */
#ifdef HAVE_LUA #ifdef HAVE_LUA
" * Lua\n" " * Lua\n"
"\n Lua bindings:\n" "\n Lua bindings:\n"

View File

@ -196,9 +196,11 @@ void set_transparent_background(Window win)
void destroy_window(void) void destroy_window(void)
{ {
#ifdef XFT
if(window.xftdraw) { if(window.xftdraw) {
XftDrawDestroy(window.xftdraw); XftDrawDestroy(window.xftdraw);
} }
#endif
if(window.gc) { if(window.gc) {
XFreeGC(display, window.gc); XFreeGC(display, window.gc);
} }