diff --git a/src/win.c b/src/win.c index 50a172ad12..78591cabb9 100644 --- a/src/win.c +++ b/src/win.c @@ -1131,6 +1131,8 @@ 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); @@ -1148,10 +1150,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);