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:
parent
73aa29645f
commit
9bfc4b0017
|
@ -143,12 +143,12 @@ end
|
||||||
function update(c)
|
function update(c)
|
||||||
if c.titlebar and data[c] then
|
if c.titlebar and data[c] then
|
||||||
local widgets = c.titlebar.widgets
|
local widgets = c.titlebar.widgets
|
||||||
if widgets[2].title then
|
if widgets[3].title then
|
||||||
widgets[2].title.text = "<span font_desc='" .. data[c].font ..
|
widgets[3].title.text = "<span font_desc='" .. data[c].font ..
|
||||||
"'> ".. util.escape(c.name) .. " </span>"
|
"'> ".. util.escape(c.name) .. " </span>"
|
||||||
end
|
end
|
||||||
if widgets[2].appicon then
|
if widgets[3].appicon then
|
||||||
widgets[2].appicon.image = c.icon
|
widgets[3].appicon.image = c.icon
|
||||||
end
|
end
|
||||||
if capi.client.focus == c then
|
if capi.client.focus == c then
|
||||||
c.titlebar.fg = data[c].fg_focus
|
c.titlebar.fg = data[c].fg_focus
|
||||||
|
|
Loading…
Reference in New Issue