titlebar: fix title and appicon position in the layout

Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Cedric GESTES 2009-09-04 14:39:53 +02:00 committed by Julien Danjou
parent 73aa29645f
commit 9bfc4b0017

View file

@ -143,12 +143,12 @@ end
function update(c)
if c.titlebar and data[c] then
local widgets = c.titlebar.widgets
if widgets[2].title then
widgets[2].title.text = "<span font_desc='" .. data[c].font ..
if widgets[3].title then
widgets[3].title.text = "<span font_desc='" .. data[c].font ..
"'> ".. util.escape(c.name) .. " </span>"
end
if widgets[2].appicon then
widgets[2].appicon.image = c.icon
if widgets[3].appicon then
widgets[3].appicon.image = c.icon
end
if capi.client.focus == c then
c.titlebar.fg = data[c].fg_focus