From ff85c11ace4eeeb0ab7a47f5d34f4d659800d545 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 27 Mar 2019 18:50:46 +0000 Subject: [PATCH] core: opacity_old should be double Using opacity_t for opacity_old resulting in opacity being rounded to 0. This is fine until the opacity reaches 0, where the opacity != opacity_old check fails and the damage is not added. Signed-off-by: Yuxuan Shui --- src/compton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 58d64870d3..36509df0be 100644 --- a/src/compton.c +++ b/src/compton.c @@ -440,7 +440,7 @@ static win *paint_preprocess(session_t *ps, bool *fade_running) { next = w->next; const winmode_t mode_old = w->mode; const bool was_painted = w->to_paint; - const opacity_t opacity_old = w->opacity; + const double opacity_old = w->opacity; if (win_should_dim(ps, w) != w->dim) { w->dim = win_should_dim(ps, w);