diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-04 07:59:30 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-04 07:59:30 +0100 |
commit | 41bd981b3804bc2f596973baad506c6f81906f5b (patch) | |
tree | e634574f99e5de8c6f3f3eb45a0a2502231e69c4 /source/xrmoptions.c | |
parent | c85f1cb0bff11f52e821e54974e06a04f932106f (diff) |
Initialize Xrm only once.
Diffstat (limited to 'source/xrmoptions.c')
-rw-r--r-- | source/xrmoptions.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/xrmoptions.c b/source/xrmoptions.c index d81053a2..f09b61b9 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -221,7 +221,6 @@ void config_parse_xresource_options ( Display *display ) { char *xRMS; // Map Xresource entries to rofi config options. - XrmInitialize (); xRMS = XResourceManagerString ( display ); if ( xRMS == NULL ) { @@ -237,7 +236,6 @@ void config_parse_xresource_options_file ( const char *filename ) return; } // Map Xresource entries to rofi config options. - XrmInitialize (); XrmDatabase xDB = XrmGetFileDatabase ( filename ); if ( xDB == NULL ) { return; @@ -331,7 +329,6 @@ void config_parse_xresource_options_dynamic ( Display *display ) { char *xRMS; // Map Xresource entries to rofi config options. - XrmInitialize (); xRMS = XResourceManagerString ( display ); if ( xRMS == NULL ) { @@ -347,7 +344,6 @@ void config_parse_xresource_options_dynamic_file ( const char *filename ) return; } // Map Xresource entries to rofi config options. - XrmInitialize (); XrmDatabase xDB = XrmGetFileDatabase ( filename ); if ( xDB == NULL ) { return; @@ -568,3 +564,8 @@ void print_xresources_theme ( void ) } } } + +void config_parse_xresource_init ( void ) +{ + XrmInitialize (); +} |