diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2025-08-02 18:22:00 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2025-08-02 18:22:00 +0200 |
commit | 7425355d015be69434240902a691563dce2be49a (patch) | |
tree | 80092875ffb47a5c8324a51334a2c6dc8d76652b /liberty-xui.c | |
parent | d8f785eae54d2b9898cc4a6b8d3c96957161538a (diff) | |
download | liberty-7425355d015be69434240902a691563dce2be49a.tar.gz liberty-7425355d015be69434240902a691563dce2be49a.tar.xz liberty-7425355d015be69434240902a691563dce2be49a.zip |
liberty-xui: fix a new Fontconfig warningHEADorigin/mastermaster
Diffstat (limited to 'liberty-xui.c')
-rw-r--r-- | liberty-xui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liberty-xui.c b/liberty-xui.c index 3f193b5..349cd6c 100644 --- a/liberty-xui.c +++ b/liberty-xui.c @@ -1884,6 +1884,8 @@ x11_init (struct poller *poller, struct attrs *app_attrs, size_t app_attrs_len) if (!(g_xui.dpy = XkbOpenDisplay (NULL, &g_xui.xkb_base_event_code, NULL, NULL, NULL, NULL))) exit_fatal ("cannot open display"); + if (!XftInit (NULL)) + print_warning ("Fontconfig initialization failed"); if (!XftDefaultHasRender (g_xui.dpy)) exit_fatal ("XRender is not supported"); if (!(g_xui.x11_im = XOpenIM (g_xui.dpy, NULL, NULL, NULL))) @@ -1912,8 +1914,6 @@ x11_init (struct poller *poller, struct attrs *app_attrs, size_t app_attrs_len) g_xui.x11_xsettings = xdg_xsettings_make (); xdg_xsettings_update (&g_xui.x11_xsettings, g_xui.dpy); - if (!FcInit ()) - print_warning ("Fontconfig initialization failed"); if (!(g_xui.xft_fonts = x11_font_open (0))) exit_fatal ("cannot open a font"); |