Skip to content

Commit

Permalink
config: remove the --paint-on-overlay option
Browse files Browse the repository at this point in the history
Deprecated since v4

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Apr 11, 2020
1 parent 6d86d50 commit 9c4b833
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion man/picom.1.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ OPTIONS
Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, provided that the WM supports it.

*--unredir-if-possible*::
Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows. Known to cause flickering when redirecting/unredirecting windows. *--paint-on-overlay* may make the flickering less obvious.
Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows. Known to cause flickering when redirecting/unredirecting windows.

*--unredir-if-possible-delay* 'MILLISECONDS'::
Delay before unredirecting the window, in milliseconds. Defaults to 0.
Expand Down
2 changes: 1 addition & 1 deletion picom.sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ refresh-rate = 0

# Unredirect all windows if a full-screen opaque window is detected,
# to maximize performance for full-screen windows. Known to cause flickering
# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious.
# when redirecting/unredirecting windows.
#
# unredir-if-possible = false

Expand Down
8 changes: 5 additions & 3 deletions src/config_libconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,11 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
if (lcfg_lookup_bool(&cfg, "clear-shadow", &bval))
log_warn("\"clear-shadow\" is removed as an option, and is always"
" enabled now. Consider removing it from your config file");
if (lcfg_lookup_bool(&cfg, "paint-on-overlay", &bval))
log_warn("\"paint-on-overlay\" has been removed as an option, and "
"is enabled whenever possible");
if (lcfg_lookup_bool(&cfg, "paint-on-overlay", &bval)) {
log_error("\"paint-on-overlay\" has been removed as an option, and "
"the feature is enabled whenever possible");
goto err;
}

if (config_lookup_float(&cfg, "alpha-step", &dval)) {
log_error("\"alpha-step\" has been removed, compton now tries to make use"
Expand Down
6 changes: 3 additions & 3 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
return false;
case 272: log_warn("use of --dbe is deprecated"); break;
case 273:
log_warn("--paint-on-overlay has been removed, and is enabled "
"when possible");
break;
log_error("--paint-on-overlay has been removed, the feature is enabled "
"whenever possible");
return false;
P_CASEBOOL(274, sw_opti);
case 275:
// --vsync-aggressive
Expand Down

0 comments on commit 9c4b833

Please sign in to comment.