From ff1fab20c2d6c66d68ae7ca9ff76a32261b289f3 Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Sat, 7 Nov 2009 15:32:03 +0100 Subject: [PATCH] Fix building with --disable-xft and add ncurses to the -v option --- src/conky.c | 3 +++ src/x11.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/conky.c b/src/conky.c index 1b12d14e..e9b5e07e 100644 --- a/src/conky.c +++ b/src/conky.c @@ -268,6 +268,9 @@ static void print_version(void) #ifdef IOSTATS " * iostats\n" #endif /* IOSTATS */ +#ifdef NCURSES + " * ncurses\n" +#endif /* NCURSES */ #ifdef HAVE_LUA " * Lua\n" "\n Lua bindings:\n" diff --git a/src/x11.c b/src/x11.c index 03ccf251..e61c6841 100644 --- a/src/x11.c +++ b/src/x11.c @@ -196,9 +196,11 @@ void set_transparent_background(Window win) void destroy_window(void) { +#ifdef XFT if(window.xftdraw) { XftDrawDestroy(window.xftdraw); } +#endif if(window.gc) { XFreeGC(display, window.gc); }