… | |
… | |
108 | BOOL (Rs_transparent_all, "inheritPixmapforce", "ipf", Opt_transparent_all, "forcefully inherit root pixmap"), |
108 | BOOL (Rs_transparent_all, "inheritPixmapforce", "ipf", Opt_transparent_all, "forcefully inherit root pixmap"), |
109 | SWCH ("tr", Opt_transparent, NULL), |
109 | SWCH ("tr", Opt_transparent, NULL), |
110 | #if TINTING |
110 | #if TINTING |
111 | STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"), |
111 | STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"), |
112 | #endif |
112 | #endif |
|
|
113 | #endif |
|
|
114 | #ifdef OFF_FOCUS_FADING |
|
|
115 | STRG (Rs_fade, "fading", "fade", "%", "make colors x% darker when urxvt is losing focus."), |
|
|
116 | #endif |
|
|
117 | #ifdef TINTING |
|
|
118 | STRG (Rs_shade, "shading", "sh", "%", "shade background by x% when tinting."), |
113 | #endif |
119 | #endif |
114 | BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), |
120 | BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), |
115 | #ifndef NO_BELL |
121 | #ifndef NO_BELL |
116 | BOOL (Rs_visualBell, "visualBell", "vb", Opt_visualBell, "visual bell"), |
122 | BOOL (Rs_visualBell, "visualBell", "vb", Opt_visualBell, "visual bell"), |
117 | # if ! defined(NO_MAPALERT) && defined(MAPALERT_OPTION) |
123 | # if ! defined(NO_MAPALERT) && defined(MAPALERT_OPTION) |
… | |
… | |
462 | |
468 | |
463 | if (entry < optList_size ()) |
469 | if (entry < optList_size ()) |
464 | { |
470 | { |
465 | if (optList_isReverse (entry)) |
471 | if (optList_isReverse (entry)) |
466 | flag = flag == On ? Off : On; |
472 | flag = flag == On ? Off : On; |
|
|
473 | |
467 | if (optList_strlen (entry)) |
474 | if (optList_strlen (entry)) |
468 | { /* string value */ |
|
|
469 | const char *str = argv[++i]; |
|
|
470 | |
|
|
471 | #ifdef DEBUG_RESOURCES |
|
|
472 | fprintf (stderr, "string (%s,%s) = ", |
|
|
473 | optList[entry].opt ? optList[entry].opt : "nil", |
|
|
474 | optList[entry].kw ? optList[entry].kw : "nil"); |
|
|
475 | #endif |
|
|
476 | if (flag == On && str && (optList[entry].doff != -1)) |
|
|
477 | { |
475 | { |
478 | #ifdef DEBUG_RESOURCES |
|
|
479 | fprintf (stderr, "\"%s\"\n", str); |
|
|
480 | #endif |
|
|
481 | rs[optList[entry].doff] = str; |
|
|
482 | /* |
476 | /* |
483 | * special cases are handled in main.c:main () to allow |
477 | * special cases are handled in main.c:main () to allow |
484 | * X resources to set these values before we settle for |
478 | * X resources to set these values before we settle for |
485 | * default values |
479 | * default values |
486 | */ |
480 | */ |
487 | } |
|
|
488 | #ifdef DEBUG_RESOURCES |
|
|
489 | else |
|
|
490 | fprintf (stderr, "???\n"); |
|
|
491 | #endif |
|
|
492 | |
481 | |
|
|
482 | if (optList[entry].doff != -1) |
|
|
483 | rs[optList[entry].doff] = flag == On && argv[i+1] |
|
|
484 | ? argv[++i] : 0; |
493 | } |
485 | } |
494 | else |
486 | else |
495 | { /* boolean value */ |
487 | { /* boolean value */ |
496 | #ifdef DEBUG_RESOURCES |
488 | #ifdef DEBUG_RESOURCES |
497 | fprintf (stderr, "boolean (%s,%s) = %s\n", |
489 | fprintf (stderr, "boolean (%s,%s) = %s\n", |