diff options
author | Arthur Williams <taaparthur@gmail.com> | 2021-09-19 01:49:56 -0700 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2021-10-10 02:17:50 +0600 |
commit | 675db4bbb646ff51cc3ecc8ba7d587670872580a (patch) | |
tree | f0536022677edf2968f770a0dc67a02e074d8b69 /nsxiv.h | |
parent | 6ce94e3e3b8cccab0a5cc23c7538ad19626c1c1d (diff) |
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 <nrk@disroot.org>
Diffstat (limited to 'nsxiv.h')
-rw-r--r-- | nsxiv.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -383,7 +383,9 @@ int r_mkdir(char*); /* window.c */ #include <X11/Xutil.h> +#if HAVE_LIBFONTS #include <X11/Xft/Xft.h> +#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; |