config: remove xrender-sync

Deprecated since v5

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-04-11 16:17:30 +01:00
parent bcb1ef1654
commit 17831a7be3
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 4 additions and 5 deletions

View File

@ -585,8 +585,8 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
} }
// --xrender-sync // --xrender-sync
if (config_lookup_bool(&cfg, "xrender-sync", &ival) && ival) { if (config_lookup_bool(&cfg, "xrender-sync", &ival) && ival) {
log_warn("Please use xrender-sync-fence instead of xrender-sync."); log_error("Please use xrender-sync-fence instead of xrender-sync.");
opt->xrender_sync_fence = true; goto err;
} }
// --xrender-sync-fence // --xrender-sync-fence
lcfg_lookup_bool(&cfg, "xrender-sync-fence", &opt->xrender_sync_fence); lcfg_lookup_bool(&cfg, "xrender-sync-fence", &opt->xrender_sync_fence);

View File

@ -787,9 +787,8 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
P_CASEBOOL(311, vsync_use_glfinish); P_CASEBOOL(311, vsync_use_glfinish);
case 312: case 312:
// --xrender-sync // --xrender-sync
log_warn("Please use --xrender-sync-fence instead of --xrender-sync"); log_error("Please use --xrender-sync-fence instead of --xrender-sync");
opt->xrender_sync_fence = true; return false;
break;
P_CASEBOOL(313, xrender_sync_fence); P_CASEBOOL(313, xrender_sync_fence);
P_CASEBOOL(315, no_fading_destroyed_argb); P_CASEBOOL(315, no_fading_destroyed_argb);
P_CASEBOOL(316, force_win_blend); P_CASEBOOL(316, force_win_blend);