diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index dc6f96286..009619468 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -268,6 +268,13 @@ function viewmore(tags, screen) capi.screen[screen]:emit_signal("tag::history::update") end +--- Toggle selection of a tag +-- @param tag Tag to be toggled +function viewtoggle(t) + t.selected = not t.selected + capi.screen[t.screen]:emit_signal("tag::history::update") +end + --- Get tag data table. -- @param tag The Tag. -- @return The data table.