Skip to content

Commit

Permalink
Misc: Add cfg file options for --unredir-if-possible-*
Browse files Browse the repository at this point in the history
Add configuration file options for
--unredir-if-possible-{delay,exclude}. (chjj#140)
  • Loading branch information
richardgv committed Sep 24, 2013
1 parent 4bd3db2 commit f202223
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compton.sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ dbe = false;
paint-on-overlay = true;
# sw-opti = true;
# unredir-if-possible = true;
# unredir-if-possible-delay = 5000;
# unredir-if-possible-exclude = [ ];
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
Expand Down
5 changes: 5 additions & 0 deletions src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f202223

Please sign in to comment.