diff --git a/lib/awful.lua.in b/lib/awful.lua.in index df2435cf..182f68a1 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -1450,18 +1450,29 @@ function titlebar.update(c) c.titlebar.fg = titlebar.data[c].fg_focus c.titlebar.bg = titlebar.data[c].bg_focus if close then - close.text = theme.titlebar_close_button_focus or - "" or + if theme.titlebar_close_button_focus then + close.text = theme.titlebar_close_button_focus + elseif theme.titlebar_close_button_img_focus then + close.text = + "" + else + close.text = "" - + end end else c.titlebar.fg = titlebar.data[c].fg c.titlebar.bg = titlebar.data[c].bg if close then - close.text = theme.titlebar_close_button_normal or - "" or + if theme.titlebar_close_button_normal then + close.text = theme.titlebar_close_button_normal + elseif theme.titlebar_close_button_img_normal then + close.text = + "" + else + close.text = "" + end end end end