mirror of
https://github.com/yshui/picom.git
synced 2024-11-25 14:06:08 -05:00
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 <yshuiv7@gmail.com>
This commit is contained in:
parent
a0d862d55f
commit
ff85c11ace
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue