Remove options deprecated in v3
Specifically, use --glx-copy-from-front and --glx-use-copysubbuffermesa are now hard errors. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
d39d937566
commit
17d1281594
|
@ -414,10 +414,14 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
|
|||
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_warn("\"glx-use-copysubbuffermesa\" %s", deprecation_message);
|
||||
if (lcfg_lookup_bool(&cfg, "glx-copy-from-front", &bval) && bval)
|
||||
log_warn("\"glx-copy-from-front\" %s", deprecation_message);
|
||||
if (lcfg_lookup_bool(&cfg, "glx-use-copysubbuffermesa", &bval) && bval) {
|
||||
log_error("\"glx-use-copysubbuffermesa\" %s", deprecation_message);
|
||||
return ERR_PTR(-1);
|
||||
}
|
||||
if (lcfg_lookup_bool(&cfg, "glx-copy-from-front", &bval) && bval) {
|
||||
log_error("\"glx-copy-from-front\" %s", deprecation_message);
|
||||
return ERR_PTR(-1);
|
||||
}
|
||||
|
||||
// Wintype settings
|
||||
|
||||
|
|
|
@ -655,7 +655,8 @@ void get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
|
|||
break;
|
||||
P_CASEBOOL(291, glx_no_stencil);
|
||||
case 292:
|
||||
log_warn("--glx-copy-from-front %s", deprecation_message);
|
||||
log_error("--glx-copy-from-front %s", deprecation_message);
|
||||
exit(1);
|
||||
break;
|
||||
P_CASELONG(293, benchmark);
|
||||
case 294:
|
||||
|
@ -663,7 +664,8 @@ void get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
|
|||
opt->benchmark_wid = strtol(optarg, NULL, 0);
|
||||
break;
|
||||
case 295:
|
||||
log_warn("--glx-use-copysubbuffermesa %s", deprecation_message);
|
||||
log_error("--glx-use-copysubbuffermesa %s", deprecation_message);
|
||||
exit(1);
|
||||
break;
|
||||
case 296:
|
||||
// --blur-background-exclude
|
||||
|
|
Loading…
Reference in New Issue