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:
Richard Grenville 2015-02-24 20:59:41 +08:00
parent 0ab80bd3e7
commit 663e1a1a04
1 changed files with 4 additions and 2 deletions

View File

@ -3465,8 +3465,10 @@ win_update_focused(session_t *ps, win *w) {
}
}
if (w->focused != focused_old)
w->flags |= WFLAG_OPCT_CHANGE;
// 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;
}
/**