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:
parent
68ca9485da
commit
ff1fab20c2
@ -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"
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user