config: remove the alpha-step option
Deprecated since v5 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
b063e9a3be
commit
6828f24454
|
@ -598,20 +598,22 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
|
|||
log_warn("\"paint-on-overlay\" has been removed as an option, and "
|
||||
"is enabled whenever possible");
|
||||
|
||||
if (config_lookup_float(&cfg, "alpha-step", &dval))
|
||||
log_warn("\"alpha-step\" has been removed, compton now tries to make use"
|
||||
" of all alpha values");
|
||||
if (config_lookup_float(&cfg, "alpha-step", &dval)) {
|
||||
log_error("\"alpha-step\" has been removed, compton now tries to make use"
|
||||
" of all alpha values");
|
||||
goto err;
|
||||
}
|
||||
|
||||
const char *deprecation_message =
|
||||
"has been removed. If you encounter problems "
|
||||
"without this feature, please feel free to open a bug report";
|
||||
if (lcfg_lookup_bool(&cfg, "glx-use-copysubbuffermesa", &bval) && bval) {
|
||||
log_error("\"glx-use-copysubbuffermesa\" %s", deprecation_message);
|
||||
return ERR_PTR(-1);
|
||||
goto err;
|
||||
}
|
||||
if (lcfg_lookup_bool(&cfg, "glx-copy-from-front", &bval) && bval) {
|
||||
log_error("\"glx-copy-from-front\" %s", deprecation_message);
|
||||
return ERR_PTR(-1);
|
||||
goto err;
|
||||
}
|
||||
|
||||
config_setting_t *blur_cfg = config_lookup(&cfg, "blur");
|
||||
|
|
|
@ -642,9 +642,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
|
|||
break;
|
||||
case 271:
|
||||
// --alpha-step
|
||||
log_warn("--alpha-step has been removed, we now tries to "
|
||||
log_error("--alpha-step has been removed, we now tries to "
|
||||
"make use of all alpha values");
|
||||
break;
|
||||
return false;
|
||||
case 272: log_warn("use of --dbe is deprecated"); break;
|
||||
case 273:
|
||||
log_warn("--paint-on-overlay has been removed, and is enabled "
|
||||
|
|
Loading…
Reference in New Issue