Make sure window cannot enter fading when unredirected
Firstly, this breaks the assumption that when we redirect the screen, all window is either mapped or unmapped, causing a assertion failure. Secondly, if transition window into fading when the screen is not redirected, the fading will not progress until the screen is redirected, probably not the desired result. Fixes #246 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -121,6 +121,9 @@ static void win_update_focused(session_t *ps, struct managed_win *w) {
|
||||
if (opacity_target_old != w->opacity_target && w->state == WSTATE_MAPPED) {
|
||||
// Only MAPPED can transition to FADING
|
||||
w->state = WSTATE_FADING;
|
||||
if (!ps->redirected) {
|
||||
CHECK(!win_skip_fading(ps, w));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user