From 6a463da636e97293e470199fb350946b0df2b688 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 1 Feb 2019 15:28:29 +0100 Subject: [PATCH] background container: Actually set the foreground color Commit ba75da7976e6 worked around a bug in LGI. However, it did so by just dropping the code that set the foreground color. Instead, it should have changed the code so that cr:set_source() is only called if the background container has a foreground color configured instead of "just always". Fixes: https://github.com/awesomeWM/awesome/pull/2609#issuecomment-459580395 Signed-off-by: Uli Schlachter --- lib/wibox/container/background.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wibox/container/background.lua b/lib/wibox/container/background.lua index c4ee51ff..d7f8403a 100644 --- a/lib/wibox/container/background.lua +++ b/lib/wibox/container/background.lua @@ -55,6 +55,10 @@ function background:before_draw_children(context, cr, width, height) end cr:restore() end + + if self._private.foreground then + cr:set_source(self._private.foreground) + end end -- Draw the border