diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in index eafe24ea..c9466796 100644 --- a/lib/awful/widget/tasklist.lua.in +++ b/lib/awful/widget/tasklist.lua.in @@ -47,11 +47,14 @@ local function tasklist_label(c, args) 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 - if c.maximized_vertical then name = name .. maximized_vertical end + if not theme.tasklist_plain_task_name then + 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 + if c.maximized_vertical then name = name .. maximized_vertical end + end + if c.minimized then name = name .. (util.escape(c.icon_name) or util.escape(c.name) or util.escape("")) else