From 88b92c7d2fa358e7aaa9b5c2d2485beab9a972c4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 14 Jan 2024 16:51:40 +0000 Subject: [PATCH] options: remove --menu-opacity Deprecated in v7. Signed-off-by: Yuxuan Shui --- src/config_libconfig.c | 10 ---------- src/options.c | 12 ------------ 2 files changed, 22 deletions(-) diff --git a/src/config_libconfig.c b/src/config_libconfig.c index ed2097eb76..718a1da8c1 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -382,16 +382,6 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad config_lookup_float(&cfg, "frame-opacity", &opt->frame_opacity); // -c (shadow_enable) lcfg_lookup_bool(&cfg, "shadow", shadow_enable); - // -m (menu_opacity) - if (config_lookup_float(&cfg, "menu-opacity", &dval)) { - log_warn("Option `menu-opacity` is deprecated, and will be removed." - "Please use the wintype option `opacity` of `popup_menu`" - "and `dropdown_menu` instead."); - opt->wintype_option[WINTYPE_DROPDOWN_MENU].opacity = dval; - opt->wintype_option[WINTYPE_POPUP_MENU].opacity = dval; - winopt_mask[WINTYPE_DROPDOWN_MENU].opacity = true; - winopt_mask[WINTYPE_POPUP_MENU].opacity = true; - } // -f (fading_enable) if (config_lookup_bool(&cfg, "fading", &ival)) { *fading_enable = ival; diff --git a/src/options.c b/src/options.c index 834b66f0a9..151a9a4bde 100644 --- a/src/options.c +++ b/src/options.c @@ -44,7 +44,6 @@ static const struct picom_option picom_options[] = { {"fade-in-step" , required_argument, 'I', NULL , "Opacity change between steps while fading in. (default 0.028)"}, {"fade-out-step" , required_argument, 'O', NULL , "Opacity change between steps while fading out. (default 0.03)"}, {"fade-delta" , required_argument, 'D', NULL , "The time between steps in a fade in milliseconds. (default 10)"}, - {"menu-opacity" , required_argument, 'm', NULL , "The opacity for menus. (default 1.0)"}, {"shadow" , no_argument , 'c', NULL , "Enabled client-side shadows on windows."}, {"clear-shadow" , no_argument , 'z', NULL , "Don't draw shadow behind the window."}, {"fading" , no_argument , 'f', NULL , "Fade windows in/out when opening/closing and when opacity changes, " @@ -414,17 +413,6 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, case 'I': opt->fade_in_step = normalize_d(atof(optarg)); break; case 'O': opt->fade_out_step = normalize_d(atof(optarg)); break; case 'c': shadow_enable = true; break; - case 'm':; - log_warn("--menu-opacity is deprecated, and will be removed." - "Please use the wintype option `opacity` of `popup_menu`" - "and `dropdown_menu` instead."); - double tmp; - tmp = normalize_d(atof(optarg)); - winopt_mask[WINTYPE_DROPDOWN_MENU].opacity = true; - winopt_mask[WINTYPE_POPUP_MENU].opacity = true; - opt->wintype_option[WINTYPE_POPUP_MENU].opacity = tmp; - opt->wintype_option[WINTYPE_DROPDOWN_MENU].opacity = tmp; - break; case 'f': case 'F': fading_enable = true;