From e8477e0a730a33b71e29a31dd51fa1601d550735 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Thu, 6 Jul 2023 01:12:09 +0300 Subject: [PATCH] backend: fix resize factor calculation 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. --- src/backend/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/backend.c b/src/backend/backend.c index f094555c33..33a3d8bcea 100644 --- a/src/backend/backend.c +++ b/src/backend/backend.c @@ -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(®_damage, blur_width * resize_factor, blur_height * resize_factor);