Skip to content

Commit

Permalink
Fix active window also being blurred
Browse files Browse the repository at this point in the history
  • Loading branch information
dshoreman committed Feb 10, 2022
1 parent 1902906 commit cda8ca4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,9 @@ void win_on_factor_change(session_t *ps, struct managed_win *w) {
// Focus needs to be updated first, as other rules might depend on the focused
// state of the window
win_update_focused(ps, w);
w->blur_foreground =
ps->o.inactive_blur && !w->focused &&
(!ps->o.inactive_blur_list || c2_match(ps, w, ps->o.inactive_blur_list, NULL));

win_determine_shadow(ps, w);
win_determine_clip_shadow_above(ps, w);
Expand All @@ -1148,10 +1151,6 @@ void win_on_factor_change(session_t *ps, struct managed_win *w) {
c2_match(ps, w, ps->o.unredir_if_possible_blacklist, NULL);
}

if (ps->o.inactive_blur && !w->focused) {
w->blur_foreground = !ps->o.inactive_blur_list ||
c2_match(ps, w, ps->o.inactive_blur_list, NULL);
}
w->fade_excluded = c2_match(ps, w, ps->o.fade_blacklist, NULL);

win_update_opacity_target(ps, w);
Expand Down

0 comments on commit cda8ca4

Please sign in to comment.