Skip to content

Commit

Permalink
core: opacity_old should be double
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yshui committed Mar 27, 2019
1 parent a0d862d commit ff85c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff85c11

Please sign in to comment.