From 675db4bbb646ff51cc3ecc8ba7d587670872580a Mon Sep 17 00:00:00 2001 From: Arthur Williams Date: Sun, 19 Sep 2021 01:49:56 -0700 Subject: Make statusbar optional (#95) libXft and libfontconfig are now optional dependencies which can be disabled via `HAVE_LIBFONTS=0`. Disabling them means disabling the statusbar. This also does not search for freetype2 header if disabled. Co-authored-by: NRK --- nsxiv.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nsxiv.h') diff --git a/nsxiv.h b/nsxiv.h index c148b24..716b24d 100644 --- a/nsxiv.h +++ b/nsxiv.h @@ -383,7 +383,9 @@ int r_mkdir(char*); /* window.c */ #include +#if HAVE_LIBFONTS #include +#endif enum { BAR_L_LEN = 512, @@ -420,11 +422,13 @@ struct win { Window xwin; win_env_t env; - XftColor win_bg; - XftColor win_fg; + unsigned long win_bg; + unsigned long win_fg; + unsigned long mrk_fg; +#if HAVE_LIBFONTS XftColor bar_bg; XftColor bar_fg; - XftColor mrk_fg; +#endif int x; int y; -- cgit v1.2.3-54-g00ecf