Skip to content

Commit

Permalink
Merge pull request #1162 from yshui/deprecations-11
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui authored Jan 15, 2024
2 parents 1b8d321 + 30e37db commit a73ca2d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions man/picom.1.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion src/config_libconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 5 additions & 4 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit a73ca2d

Please sign in to comment.