diff --git a/PKGBUILD b/PKGBUILD index 610d767..2b9f07d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -15,7 +15,7 @@ depends=( 'libudev.so' 'json-c' 'libmpdclient' - 'fcft>=1.0.0') + 'fcft>=1.1.0') optdepends=('xcb-util-errors: better X error messages') source=() diff --git a/config.c b/config.c index fb8e6b7..d10ce04 100644 --- a/config.c +++ b/config.c @@ -67,7 +67,7 @@ conf_to_color(const struct yml_node *node) struct font * conf_to_font(const struct yml_node *node) { - return font_from_name(&(const char *){yml_value_as_string(node)}, 1, NULL); + return font_from_name(1, &(const char *){yml_value_as_string(node)}, NULL); } struct deco * @@ -263,7 +263,7 @@ conf_to_bar(const struct yml_node *bar, enum bar_backend backend) * and particles. This allows us to specify a default font and * foreground color at top-level. */ - struct font *font = font_from_name(&(const char *){"sans"}, 1, NULL); + struct font *font = font_from_name(1, &(const char *){"sans"}, NULL); pixman_color_t foreground = {0xffff, 0xffff, 0xffff, 0xffff}; /* White */ const struct yml_node *font_node = yml_get_value(bar, "font"); diff --git a/meson.build b/meson.build index 22f501f..6b289ad 100644 --- a/meson.build +++ b/meson.build @@ -36,7 +36,7 @@ backend_wayland = wayland_client.found() and wayland_cursor.found() and wlroots. # "My" dependencies, fallback to subproject tllist = dependency('tllist', version: '>=1.0.0', fallback: ['tllist', 'tllist']) -fcft = dependency('fcft', version: ['>=1.0.0', '<2.0.0'], fallback: ['fcft', 'fcft']) +fcft = dependency('fcft', version: ['>=1.1.0', '<1.2.0'], fallback: ['fcft', 'fcft']) add_project_arguments( ['-D_GNU_SOURCE'] +