Skip to content

Commit

Permalink
Merge branch 'yshui:next' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
pijulius committed Sep 3, 2024
2 parents 404652d + 4f14390 commit cb93ce9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Unreleased

## Bug fixes

* Windows become completely black when `rules` and `inactive-dim` are set at the same time.

# v12-rc3 (2024-Aug-30)

## Bug fixes
Expand Down
2 changes: 2 additions & 0 deletions man/picom.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ Most of the rule options should 1:1 map to the new window rules. Here is a list

*Inactive dimming and opacity*:: This includes options <<inactive-opacity>>, <<inactive-dim>>, <<active-opacity>>,
<<inactive-opacity-override>>, <<mark-wmwin-focused>>, and <<mark-ovredir-focused>>. When using the window rules, the compositor no longer have an "active window" concept, as it is easy to achieve with window rules. You can use `match = "focused || group_focused"` to match windows that would have been considered active with the old options. Then you can set the opacity and dim level for matched windows accordingly. <<mark-wmwin-focused>> and <<mark-ovredir-focused>> can be achieved by adding `|| wmwin` and `|| override_redirect` to the match string, respectively. <<inactive-opacity-override>> can be achieved by setting `opacity-override = true`.
+
NOTE: Setting _opacity_ explicitly with a rule will override the opacity value from the window properties (i.e. _pass:[_]NET_WM_WINDOW_OPACITY_), which is used by tools like `picom-trans` for setting the opacity of window. If you would like to keep using tools like `picom-trans`, you can choose to set the opacity only for windows without the opacity property by matching `! _NET_WM_WINDOW_OPACITY`.

*Active window*:: This includes option <<focus-exclude>>. This option was only used to influence what windows are considered active, to apply inactive opacity and dimming. Since with window rules you no longer need the compositor to help you decide what is active and what is not (see above), this option is no longer needed.

Expand Down
2 changes: 1 addition & 1 deletion src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ static struct window_options win_options_from_config(const struct options *opts)
.shadow = opts->shadow_enable,
.corner_radius = (unsigned)opts->corner_radius,
.transparent_clipping = opts->transparent_clipping,
.dim = opts->inactive_dim > 0,
.dim = 0,
.fade = opts->fading_enable,
.shader = opts->window_shader_fg,
.invert_color = false,
Expand Down

0 comments on commit cb93ce9

Please sign in to comment.