From 1f80e547bc07b199e65d7b00124c69f12354c50f Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 27 Mar 2019 15:38:36 +0000 Subject: [PATCH] core: remove unnecessary win_check_fade_finished Signed-off-by: Yuxuan Shui --- src/backend/backend.c | 7 ------- src/compton.c | 2 -- src/render.c | 9 --------- 3 files changed, 18 deletions(-) diff --git a/src/backend/backend.c b/src/backend/backend.c index 33ffefe..68a15d1 100644 --- a/src/backend/backend.c +++ b/src/backend/backend.c @@ -287,13 +287,6 @@ void paint_all_new(session_t *ps, win *const t, bool ignore_damage) { putchar('\n'); fflush(stdout); #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 : diff --git a/src/compton.c b/src/compton.c index 33431cc..1926844 100644 --- a/src/compton.c +++ b/src/compton.c @@ -595,8 +595,6 @@ static win *paint_preprocess(session_t *ps, bool *fade_running) { reg_ignore_valid = reg_ignore_valid && w->reg_ignore_valid; w->reg_ignore_valid = true; - win_check_fade_finished(ps, &w); - // Avoid setting w->to_paint if w is freed if (w) { w->to_paint = to_paint; diff --git a/src/render.c b/src/render.c index a371456..337c931 100644 --- a/src/render.c +++ b/src/render.c @@ -1039,15 +1039,6 @@ void paint_all(session_t *ps, win *const t, bool ignore_damage) { // Free the paint region 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); - } - } } /**