Add 'xrm' option.
authorayin <ayin>
Fri, 23 Nov 2007 11:17:37 +0000 (11:17 +0000)
committerayin <ayin>
Fri, 23 Nov 2007 11:17:37 +0000 (11:17 +0000)
src/xdefaults.C

index a3d0afc14dfa07c48153efeac9b57b71d53791fd..0331a73d78b03479c7f4a710d94b9d6c497202a4 100644 (file)
@@ -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))
         {