display ontop mode for clients in awful.widget.tasklist

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
dodo 2011-03-08 19:28:40 +01:00 committed by Uli Schlachter
parent 07164aa995
commit 5d9fa5614e
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ local function tasklist_label(c, args)
local bg = nil local bg = nil
local text = "<span font_desc='"..font.."'>" local text = "<span font_desc='"..font.."'>"
local name = "" local name = ""
if c.ontop then name = name .. "" end
if client.floating.get(c) then name = name .. "" end if client.floating.get(c) then name = name .. "" end
if c.maximized_horizontal then name = name .. '' end if c.maximized_horizontal then name = name .. '' end
if c.maximized_vertical then name = name .. "" end if c.maximized_vertical then name = name .. "" end
@ -100,6 +101,7 @@ function new(screen, filter, buttons, style)
capi.screen[screen]:connect_signal("tag::detach", u) capi.screen[screen]:connect_signal("tag::detach", u)
tag.attached_connect_signal(screen, "property::selected", u) tag.attached_connect_signal(screen, "property::selected", u)
capi.client.connect_signal("property::urgent", u) capi.client.connect_signal("property::urgent", u)
capi.client.connect_signal("property::ontop", u)
capi.client.connect_signal("property::floating", u) capi.client.connect_signal("property::floating", u)
capi.client.connect_signal("property::maximized_horizontal", u) capi.client.connect_signal("property::maximized_horizontal", u)
capi.client.connect_signal("property::maximized_vertical", u) capi.client.connect_signal("property::maximized_vertical", u)