From 80b66cf975b78a4b6fc562ba517b7bb8bbb19806 Mon Sep 17 00:00:00 2001 From: ayin Date: Fri, 23 Nov 2007 11:17:37 +0000 Subject: [PATCH] Add 'xrm' option. --- src/xdefaults.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/xdefaults.C b/src/xdefaults.C index a3d0afc1..0331a73d 100644 --- a/src/xdefaults.C +++ b/src/xdefaults.C @@ -264,9 +264,6 @@ optList[] = { #ifdef HAVE_AFTERIMAGE STRG (Rs_blendtype, "blendType", "blt", "string", "background image blending type - alpha, tint, etc..."), STRG (Rs_blurradius, "blurRadius", "blr", "HxV", "Gaussian Blur radii to apply to the root background"), -#endif -#ifndef NO_RESOURCES - INFO ("xrm", "string", "X resource"), #endif INFO ("e", "command arg ...", "command to execute") }; @@ -563,6 +560,13 @@ rxvt_term::get_options (int argc, const char *const *argv) rs[optList[entry].doff] = flag; } } +#ifndef NO_RESOURCES + else if (!strcmp (opt, "xrm")) + { + if (i+1 < argc) + XrmPutLineResource (&option_db, argv[++i]); + } +#endif #ifdef KEYSYM_RESOURCE else if (!strncmp (opt, "keysym.", sizeof ("keysym.") - 1)) { -- 2.34.1