diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d87f7e6..570ea849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# Unreleased + +## Deprecations + +* Uses of `--sw-opti`, and `--respect-prop-shadow` are now hard errors. +* `-F` has been removed completely. It was deprecated before the picom fork. + # v11-rc1 (2024-Jan-14) ## Notable features diff --git a/man/picom.1.asciidoc b/man/picom.1.asciidoc index dbd3ec69..b5df2a78 100644 --- a/man/picom.1.asciidoc +++ b/man/picom.1.asciidoc @@ -49,9 +49,6 @@ OPTIONS *-f*, *--fading*:: Fade windows in/out when opening/closing and when opacity changes, unless *--no-fading-openclose* is used. -*-F*:: - Equals to *-f*. Deprecated. - *-i*, *--inactive-opacity*='OPACITY':: Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) diff --git a/src/config_libconfig.c b/src/config_libconfig.c index ed2097eb..4dc15a1f 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -478,7 +478,8 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad } // --sw-opti if (lcfg_lookup_bool(&cfg, "sw-opti", &bval)) { - log_warn("The sw-opti %s", deprecation_message); + log_error("The sw-opti %s", deprecation_message); + goto err; } // --use-ewmh-active-win lcfg_lookup_bool(&cfg, "use-ewmh-active-win", &opt->use_ewmh_active_win); diff --git a/src/options.c b/src/options.c index 834b66f0..36378568 100644 --- a/src/options.c +++ b/src/options.c @@ -306,7 +306,7 @@ static void usage(const char *argv0, int ret) { } } -static const char *shortopts = "D:I:O:r:o:m:l:t:i:e:hscnfFCazGb"; +static const char *shortopts = "D:I:O:r:o:m:l:t:i:e:hscnfCazGb"; /// Get config options that are needed to parse the rest of the options /// Return true if we should quit @@ -426,7 +426,6 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, opt->wintype_option[WINTYPE_DROPDOWN_MENU].opacity = tmp; break; case 'f': - case 'F': fading_enable = true; break; P_CASEINT('r', shadow_radius); @@ -511,8 +510,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, "--crop-shadow-to-monitor instead."); break; case 274: - log_warn("--sw-opti has been deprecated, please remove it from the " + log_error("--sw-opti has been deprecated, please remove it from the " "command line options"); + failed = true; break; case 275: // --vsync-aggressive @@ -523,9 +523,10 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, P_CASEBOOL(276, use_ewmh_active_win); case 277: // --respect-prop-shadow - log_warn("--respect-prop-shadow option has been deprecated, its " + log_error("--respect-prop-shadow option has been deprecated, its " "functionality will always be enabled. Please remove it " "from the command line options"); + failed = true; break; P_CASEBOOL(278, unredir_if_possible); case 279: