summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2013-09-24 20:41:50 +0800
committerRichard Grenville <pyxlcy@gmail.com>2013-09-24 20:41:50 +0800
commite0e726c4246f234b216ed79f22aa77e70560d178 (patch)
tree6265bc81e80c83b8c1298b7f34c3cb86e447eefa
parent2b534cd86445fcd770948bbb79f4732361259ab9 (diff)
downloadtdebase-e0e726c4246f234b216ed79f22aa77e70560d178.tar.gz
tdebase-e0e726c4246f234b216ed79f22aa77e70560d178.zip
Misc: Add cfg file options for --unredir-if-possible-*
Add configuration file options for --unredir-if-possible-{delay,exclude}. (#140)
-rw-r--r--compton.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/compton.c b/compton.c
index 511083c1a..76a1c75cf 100644
--- a/compton.c
+++ b/compton.c
@@ -5192,6 +5192,9 @@ parse_config(session_t *ps, struct options_tmp *pcfgtmp) {
// --unredir-if-possible
lcfg_lookup_bool(&cfg, "unredir-if-possible",
&ps->o.unredir_if_possible);
+ // --unredir-if-possible-delay
+ if (lcfg_lookup_int(&cfg, "unredir-if-possible-delay", &ival))
+ ps->o.unredir_if_possible_delay = ival;
// --inactive-dim-fixed
lcfg_lookup_bool(&cfg, "inactive-dim-fixed", &ps->o.inactive_dim_fixed);
// --detect-transient
@@ -5211,6 +5214,8 @@ parse_config(session_t *ps, struct options_tmp *pcfgtmp) {
parse_cfg_condlst(ps, &cfg, &ps->o.blur_background_blacklist, "blur-background-exclude");
// --opacity-rule
parse_cfg_condlst(ps, &cfg, &ps->o.opacity_rules, "opacity-rule");
+ // --unredir-if-possible-exclude
+ parse_cfg_condlst(ps, &cfg, &ps->o.unredir_if_possible_blacklist, "unredir-if-possible-exclude");
// --blur-background
lcfg_lookup_bool(&cfg, "blur-background", &ps->o.blur_background);
// --blur-background-frame