mirror of https://github.com/yshui/picom.git
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 <yshuiv7@gmail.com>
This commit is contained in:
parent
4fbaaca0d6
commit
73f66c7d5d
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue