From 17831a7be3ecf02b874738009fbb2e244de6bd67 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 11 Apr 2020 16:17:30 +0100 Subject: [PATCH] config: remove xrender-sync Deprecated since v5 Signed-off-by: Yuxuan Shui --- src/config_libconfig.c | 4 ++-- src/options.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config_libconfig.c b/src/config_libconfig.c index 534d55e..659ff86 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -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); diff --git a/src/options.c b/src/options.c index d89cf96..436b82d 100644 --- a/src/options.c +++ b/src/options.c @@ -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);