Skip to content

Commit

Permalink
backend: fix resize factor calculation
Browse files Browse the repository at this point in the history
the corresponding regions need to be resized once for each window in the
stack above the damaged window including the damaged window itself. we
were off by one.
  • Loading branch information
absolutelynothelix committed Jul 6, 2023
1 parent 4a39423 commit e8477e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void paint_all_new(session_t *ps, struct managed_win *t) {
// TODO(yshui): maybe we don't need to resize reg_damage, only reg_paint?
int resize_factor = 1;
if (t) {
resize_factor = t->stacking_rank;
resize_factor = t->stacking_rank + 1;
}
resize_region_in_place(&reg_damage, blur_width * resize_factor,
blur_height * resize_factor);
Expand Down

0 comments on commit e8477e0

Please sign in to comment.