core: remove unnecessary win_check_fade_finished
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
6344ae2a46
commit
1f80e547bc
|
@ -287,13 +287,6 @@ void paint_all_new(session_t *ps, win *const t, bool ignore_damage) {
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Check if fading is finished on all painted windows
|
|
||||||
win *pprev = NULL;
|
|
||||||
for (win *w = t; w; w = pprev) {
|
|
||||||
pprev = w->prev_trans;
|
|
||||||
win_check_fade_finished(ps, &w);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim: set noet sw=8 ts=8 :
|
// vim: set noet sw=8 ts=8 :
|
||||||
|
|
|
@ -595,8 +595,6 @@ static win *paint_preprocess(session_t *ps, bool *fade_running) {
|
||||||
reg_ignore_valid = reg_ignore_valid && w->reg_ignore_valid;
|
reg_ignore_valid = reg_ignore_valid && w->reg_ignore_valid;
|
||||||
w->reg_ignore_valid = true;
|
w->reg_ignore_valid = true;
|
||||||
|
|
||||||
win_check_fade_finished(ps, &w);
|
|
||||||
|
|
||||||
// Avoid setting w->to_paint if w is freed
|
// Avoid setting w->to_paint if w is freed
|
||||||
if (w) {
|
if (w) {
|
||||||
w->to_paint = to_paint;
|
w->to_paint = to_paint;
|
||||||
|
|
|
@ -1039,15 +1039,6 @@ void paint_all(session_t *ps, win *const t, bool ignore_damage) {
|
||||||
|
|
||||||
// Free the paint region
|
// Free the paint region
|
||||||
pixman_region32_fini(®ion);
|
pixman_region32_fini(®ion);
|
||||||
|
|
||||||
// Check if fading is finished on all painted windows
|
|
||||||
{
|
|
||||||
win *pprev = NULL;
|
|
||||||
for (win *w = t; w; w = pprev) {
|
|
||||||
pprev = w->prev_trans;
|
|
||||||
win_check_fade_finished(ps, &w);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue