tasklist: Add spacing support

This commit is contained in:
Emmanuel Lepage Vallee 2016-08-05 01:34:55 -04:00
parent 967fc87a92
commit 520bd02416
1 changed files with 5 additions and 0 deletions

View File

@ -167,6 +167,7 @@ end
-- @tparam[opt=nil] string style.font_focus
-- @tparam[opt=nil] string style.font_minimized
-- @tparam[opt=nil] string style.font_urgent
-- @tparam[opt=nil] number style.spacing The spacing between tags.
-- @param[opt] update_function Function to create a tag widget on each
-- update. See `awful.widget.common.list_update`.
-- @tparam[opt] table base_widget Container widget for tag widgets. Default
@ -179,6 +180,10 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg
local data = setmetatable({}, { __mode = 'k' })
if w.set_spacing and (style and style.spacing or beautiful.taglist_spacing) then
w:set_spacing(style and style.spacing or beautiful.taglist_spacing)
end
local queued_update = false
function w._do_tasklist_update()
-- Add a delayed callback for the first update.