Initialize xrm during init
Initializing xrm is required only once. Everything else would be overhead.
This commit is contained in:
parent
9961efd10c
commit
4b06d67605
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user