mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue