diff --git a/src/x11/screen.c b/src/x11/screen.c index ce89702..7c3347f 100644 --- a/src/x11/screen.c +++ b/src/x11/screen.c @@ -59,8 +59,6 @@ static double screen_dpi_get_from_xft(void) if (screen_dpi_xft_cache == -DBL_MAX) { screen_dpi_xft_cache = 0; - XrmInitialize(); - char *xrmType; XrmValue xrmValue; XrmDatabase db = XrmGetDatabase(xctx.dpy); diff --git a/src/x11/x.c b/src/x11/x.c index c26ed32..e069beb 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -471,6 +471,8 @@ void x_setup(void) init_screens(); x_shortcut_grab(&settings.history_ks); + + XrmInitialize(); } struct geometry x_parse_geometry(const char *geom_str)