core: remove unnecessary win_check_fade_finished

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-03-27 15:38:36 +00:00
parent 6344ae2a46
commit 1f80e547bc
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
3 changed files with 0 additions and 18 deletions

View File

@ -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 :

View File

@ -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;

View File

@ -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(&region); pixman_region32_fini(&region);
// 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);
}
}
} }
/** /**