Skip to content

Commit

Permalink
config: remove xrender-sync
Browse files Browse the repository at this point in the history
Deprecated since v5

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Apr 11, 2020
1 parent bcb1ef1 commit 17831a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/config_libconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
}
// --xrender-sync
if (config_lookup_bool(&cfg, "xrender-sync", &ival) && ival) {
log_warn("Please use xrender-sync-fence instead of xrender-sync.");
opt->xrender_sync_fence = true;
log_error("Please use xrender-sync-fence instead of xrender-sync.");
goto err;
}
// --xrender-sync-fence
lcfg_lookup_bool(&cfg, "xrender-sync-fence", &opt->xrender_sync_fence);
Expand Down
5 changes: 2 additions & 3 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,8 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
P_CASEBOOL(311, vsync_use_glfinish);
case 312:
// --xrender-sync
log_warn("Please use --xrender-sync-fence instead of --xrender-sync");
opt->xrender_sync_fence = true;
break;
log_error("Please use --xrender-sync-fence instead of --xrender-sync");
return false;
P_CASEBOOL(313, xrender_sync_fence);
P_CASEBOOL(315, no_fading_destroyed_argb);
P_CASEBOOL(316, force_win_blend);
Expand Down

0 comments on commit 17831a7

Please sign in to comment.