From 73f66c7d5d817b75883de7e9ef9f1c47eec69479 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 24 Jan 2022 18:44:31 +0000 Subject: [PATCH] Formally deprecate --menu-opacity It was deprecated in v4, but warning message wasn't printed for specifying it on the command line. Properly deprecate it now. Signed-off-by: Yuxuan Shui --- man/picom.1.asciidoc | 3 --- src/options.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/picom.1.asciidoc b/man/picom.1.asciidoc index e885de97..307e2652 100644 --- a/man/picom.1.asciidoc +++ b/man/picom.1.asciidoc @@ -43,9 +43,6 @@ OPTIONS *-D*, *--fade-delta*='MILLISECONDS':: The time between steps in fade step, in milliseconds. (> 0, defaults to 10) -*-m*, *--menu-opacity*='OPACITY':: - Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) - *-c*, *--shadow*:: Enabled client-side shadows on windows. Note desktop windows (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, unless explicitly requested using the wintypes option. diff --git a/src/options.c b/src/options.c index b5868d90..278405d3 100644 --- a/src/options.c +++ b/src/options.c @@ -556,6 +556,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, 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;