From 4df1cd63154c7c599d47a0dbd0bc53966fd9d038 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 30 Oct 2021 22:43:46 -0700 Subject: [PATCH] background: Correctly apply the matrix in the fallback border code. --- lib/wibox/container/background.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wibox/container/background.lua b/lib/wibox/container/background.lua index a93a93ac9..580c8fd66 100644 --- a/lib/wibox/container/background.lua +++ b/lib/wibox/container/background.lua @@ -69,7 +69,7 @@ function background._use_fallback_algorithm() cairo.Rectangle { x = 0, y = 0, width = mat.x0 + width, height = mat.y0 + height }) local mask_cr = cairo.Context(mask) - mask_cr:translate(mat.x0, mat.y0) + mask_cr:set_matrix(mat) -- Clear the surface. mask_cr:set_operator(cairo.Operator.CLEAR)