From 9dfe4fe84b633efe3937b16271f9ed1c88684751 Mon Sep 17 00:00:00 2001 From: Anurag Priyam Date: Sun, 6 May 2012 14:49:06 +0530 Subject: [PATCH] wibox.set_bg: remove historical cruft Should ideally have been removed in commit 'drawin: Remove bg_color property'. Signed-off-by: Anurag Priyam Signed-off-by: Uli Schlachter --- lib/wibox/init.lua.in | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/wibox/init.lua.in b/lib/wibox/init.lua.in index 02b84940..02d7401b 100644 --- a/lib/wibox/init.lua.in +++ b/lib/wibox/init.lua.in @@ -131,13 +131,6 @@ function set_bg(wibox, c) if type(c) == "string" or type(c) == "table" then c = color(c) end - -- If this is a solid color, propagate the background color to the capi drawin - if c:get_type() == "solid" then - local r, g, b, a = c:get_rgba() - r, g, b, a = r * 255, g * 255, b * 255, a * 255 - -- Alpha isn't supported for backgrounds - colstr = string_format("#%02x%02x%02x", r, g, b) - end wibox.background_color = c wibox.draw() end