diff options
| author | allusive-dev <[email protected]> | 2023-11-05 08:37:47 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-11-05 08:37:47 +1100 |
| commit | f0e03e52a31a7badad4f3c4e8ba2122a8aef87a4 (patch) | |
| tree | a70c1bdc06e77196d1e7e2c3c3fbd3b28c230596 /src/win.c | |
| parent | Merge branch 'main' of github.com:allusive-dev/picom-allusive (diff) | |
| download | compfy-f0e03e52a31a7badad4f3c4e8ba2122a8aef87a4.tar.xz compfy-f0e03e52a31a7badad4f3c4e8ba2122a8aef87a4.zip | |
changed 'inactive-opacity-exclude' to 'inactive-exclude', updated sample config, inactive-exclude now cancels inactive-dim1.3.2
Diffstat (limited to 'src/win.c')
| -rw-r--r-- | src/win.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1212,13 +1212,21 @@ bool win_should_dim(session_t *ps, const struct managed_win *w) { if (ps->o.support_for_wm == WM_SUPPORT_DWM) { if (ps->o.inactive_dim > 0 && !win_is_focused_raw(ps, w)) { - return true; + if (c2_match(ps, w, ps->o.inactive_opacity_blacklist, NULL)) { + return false; + } else { + return true; + } } else { return false; } } else { - if (ps->o.inactive_dim > 0 && !w->focused) { - return true; + if (ps->o.inactive_dim > 0 && !win_is_focused_raw(ps, w)) { + if (c2_match(ps, w, ps->o.inactive_opacity_blacklist, NULL)) { + return false; + } else { + return true; + } } else { return false; } |