From 03dc98d47d51fca9dd4ea391ddecdfb04f2b01fc Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 24 Jan 2022 18:19:15 +0000 Subject: [PATCH] Remove error messages for --dbe and --paint-on-overlay Deprecated since v4. Signed-off-by: Yuxuan Shui --- src/common.h | 2 +- src/config_libconfig.c | 5 ----- src/options.c | 12 ------------ 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/common.h b/src/common.h index 052e998..1b11c27 100644 --- a/src/common.h +++ b/src/common.h @@ -184,7 +184,7 @@ typedef struct session { int root_width; // Damage of root window. // Damage root_damage; - /// X Composite overlay window. Used if --paint-on-overlay. + /// X Composite overlay window. xcb_window_t overlay; /// The target window for debug mode xcb_window_t debug_window; diff --git a/src/config_libconfig.c b/src/config_libconfig.c index 79a8132..81c7146 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -624,11 +624,6 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad if (lcfg_lookup_bool(&cfg, "clear-shadow", &bval)) log_warn("\"clear-shadow\" is removed as an option, and is always" " enabled now. Consider removing it from your config file"); - if (lcfg_lookup_bool(&cfg, "paint-on-overlay", &bval)) { - log_error("\"paint-on-overlay\" has been removed as an option, and " - "the feature is enabled whenever possible"); - goto err; - } if (config_lookup_float(&cfg, "alpha-step", &dval)) { log_error("\"alpha-step\" has been removed, compton now tries to make use" diff --git a/src/options.c b/src/options.c index 3a66949..f2c5dcb 100644 --- a/src/options.c +++ b/src/options.c @@ -167,9 +167,6 @@ static void usage(const char *argv0, int ret) { "--vsync\n" " Enable VSync\n" "\n" - "--paint-on-overlay\n" - " Painting on X Composite overlay window.\n" - "\n" "--use-ewmh-active-win\n" " Use _NET_WM_ACTIVE_WINDOW on the root window to determine which\n" " window is focused instead of using FocusIn/Out events.\n" @@ -394,8 +391,6 @@ static const struct option longopts[] = { {"refresh-rate", required_argument, NULL, 269}, {"vsync", optional_argument, NULL, 270}, {"alpha-step", required_argument, NULL, 271}, - {"dbe", no_argument, NULL, 272}, - {"paint-on-overlay", no_argument, NULL, 273}, {"sw-opti", no_argument, NULL, 274}, {"vsync-aggressive", no_argument, NULL, 275}, {"use-ewmh-active-win", no_argument, NULL, 276}, @@ -678,13 +673,6 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, log_error("--alpha-step has been removed, we now tries to " "make use of all alpha values"); failed = true; break; - case 272: - log_error("--dbe has been removed"); - failed = true; break; - case 273: - log_error("--paint-on-overlay has been removed, the feature is enabled " - "whenever possible"); - failed = true; break; case 274: log_warn("--sw-opti has been deprecated, please remove it from the " "command line options");