From 902db9a73d718c5b4e46d9a633f321e0299050e3 Mon Sep 17 00:00:00 2001 From: Anurag Priyam Date: Fri, 6 Jan 2012 00:54:33 +0530 Subject: [PATCH] tasklist: indicate sticky clients with a solid square as the default Signed-off-by: Anurag Priyam Signed-off-by: Uli Schlachter --- lib/awful/widget/tasklist.lua.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in index 0cc58facf..c52e4cdd8 100644 --- a/lib/awful/widget/tasklist.lua.in +++ b/lib/awful/widget/tasklist.lua.in @@ -40,11 +40,13 @@ local function tasklist_label(c, args) local name = "" -- symbol to use to indicate certain client properties + local sticky = args.sticky or theme.tasklist_sticky or "▪" local ontop = args.ontop or theme.tasklist_ontop or '⌃' local floating = args.floating or theme.tasklist_floating or '✈' local maximized_horizontal = args.maximized_horizontal or theme.tasklist_maximized_horizontal or '⬌' local maximized_vertical = args.maximized_vertical or theme.tasklist_maximized_vertical or '⬍' + if c.sticky then name = name .. sticky end if c.ontop then name = name .. ontop end if client.floating.get(c) then name = name .. floating end if c.maximized_horizontal then name = name .. maximized_horizontal end @@ -116,6 +118,7 @@ function new(screen, filter, buttons, style) capi.screen[screen]:connect_signal("tag::detach", u) tag.attached_connect_signal(screen, "property::selected", u) capi.client.connect_signal("property::urgent", u) + capi.client.connect_signal("property::sticky", u) capi.client.connect_signal("property::ontop", u) capi.client.connect_signal("property::floating", u) capi.client.connect_signal("property::maximized_horizontal", u)