Bug fix: --active-opacity state does not change correctly on `--focus-exclude`-ed windows
Fix the bug that --active-opacity state does not change on `--focus-exclude`-ed windows correctly, since win_update_focused() enables the WFLAG_OPCT_CHANGE flag on a window only if w->focused changes, while --active-opacity depends on the output of win_is_focused_real() instead of w->focused, which could be changed even if w->focused does not change (e.g. when the window is `--focus-exclude`-ed).
This commit is contained in:
parent
0ab80bd3e7
commit
663e1a1a04
|
@ -3465,7 +3465,9 @@ win_update_focused(session_t *ps, win *w) {
|
|||
}
|
||||
}
|
||||
|
||||
if (w->focused != focused_old)
|
||||
// Always recalculate the window target opacity, since some opacity-related
|
||||
// options depend on the output value of win_is_focused_real() instead of
|
||||
// w->focused
|
||||
w->flags |= WFLAG_OPCT_CHANGE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue