From e963d37cc4b9ff8b5ab0390bf5934c68185a3c3c Mon Sep 17 00:00:00 2001 From: Anton Bulakh Date: Mon, 22 Nov 2021 12:39:16 +0200 Subject: [PATCH] Fix widget repaint printed errors --- lib/wibox/hierarchy.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wibox/hierarchy.lua b/lib/wibox/hierarchy.lua index d0e07d630..3472716d1 100644 --- a/lib/wibox/hierarchy.lua +++ b/lib/wibox/hierarchy.lua @@ -172,6 +172,10 @@ function hierarchy_update(self, context, widget, width, height, region, matrix_t -- Are there any children which were removed? Their area needs a redraw. for _, child in ipairs(old_children) do local x, y, w, h = matrix.transform_rectangle(child._matrix_to_device, child:get_draw_extents()) + x = math.floor(x) + y = math.floor(y) + w = math.ceil(w) + h = math.ceil(h) region:union_rectangle(cairo.RectangleInt{ x = x, y = y, width = w, height = h })