mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
Remove no-dock-shadow and no-dnd-shadow
Deprecated since v4 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
731bd61467
commit
283504d527
3 changed files with 13 additions and 21 deletions
|
@ -49,9 +49,6 @@ OPTIONS
|
|||
*-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.
|
||||
|
||||
*-C*, *--no-dock-shadow*::
|
||||
Avoid drawing shadows on dock/panel windows. This option is deprecated, you should use the *wintypes* option in your config file instead.
|
||||
|
||||
*-f*, *--fading*::
|
||||
Fade windows in/out when opening/closing and when opacity changes, unless *--no-fading-openclose* is used.
|
||||
|
||||
|
@ -64,9 +61,6 @@ OPTIONS
|
|||
*-e*, *--frame-opacity*='OPACITY'::
|
||||
Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
|
||||
|
||||
*-G*, *--no-dnd-shadow*::
|
||||
Don't draw shadows on drag-and-drop windows. This option is deprecated, you should use the *wintypes* option in your config file instead.
|
||||
|
||||
*-b*, *--daemon*::
|
||||
Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
|
||||
|
||||
|
|
|
@ -374,17 +374,15 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
|
|||
*shadow_enable = ival;
|
||||
// -C (no_dock_shadow)
|
||||
if (config_lookup_bool(&cfg, "no-dock-shadow", &ival)) {
|
||||
log_warn("Option `no-dock-shadow` is deprecated, and will be removed."
|
||||
" Please use the wintype option `shadow` of `dock` instead.");
|
||||
opt->wintype_option[WINTYPE_DOCK].shadow = false;
|
||||
winopt_mask[WINTYPE_DOCK].shadow = true;
|
||||
log_error("Option `no-dock-shadow` has been removed. Please use the "
|
||||
"wintype option `shadow` of `dock` instead.");
|
||||
goto err;
|
||||
}
|
||||
// -G (no_dnd_shadow)
|
||||
if (config_lookup_bool(&cfg, "no-dnd-shadow", &ival)) {
|
||||
log_warn("Option `no-dnd-shadow` is deprecated, and will be removed."
|
||||
" Please use the wintype option `shadow` of `dnd` instead.");
|
||||
opt->wintype_option[WINTYPE_DND].shadow = false;
|
||||
winopt_mask[WINTYPE_DND].shadow = true;
|
||||
log_error("Option `no-dnd-shadow` has been removed. Please use the "
|
||||
"wintype option `shadow` of `dnd` instead.");
|
||||
goto err;
|
||||
};
|
||||
// -m (menu_opacity)
|
||||
if (config_lookup_float(&cfg, "menu-opacity", &dval)) {
|
||||
|
|
|
@ -565,13 +565,13 @@ 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 'C':
|
||||
winopt_mask[WINTYPE_DOCK].shadow = true;
|
||||
opt->wintype_option[WINTYPE_DOCK].shadow = false;
|
||||
break;
|
||||
log_error("Option `--no-dock-shadow`/`-C` has been removed. Please"
|
||||
" use the wintype option `shadow` of `dock` instead.");
|
||||
return false;
|
||||
case 'G':
|
||||
winopt_mask[WINTYPE_DND].shadow = true;
|
||||
opt->wintype_option[WINTYPE_DND].shadow = false;
|
||||
break;
|
||||
log_error("Option `--no-dnd-shadow`/`-G` has been removed. Please "
|
||||
"use the wintype option `shadow` of `dnd` instead.");
|
||||
return false;
|
||||
case 'm':;
|
||||
double tmp;
|
||||
tmp = normalize_d(atof(optarg));
|
||||
|
@ -604,7 +604,7 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
|
|||
case 'a':
|
||||
case 's':
|
||||
log_error("-n, -a, and -s have been removed.");
|
||||
break;
|
||||
return false;
|
||||
// Long options
|
||||
case 256:
|
||||
// --config
|
||||
|
|
Loading…
Add table
Reference in a new issue