diff --git a/lib/awful/widget/tasklist.lua b/lib/awful/widget/tasklist.lua index ae749273..cff5ef4e 100644 --- a/lib/awful/widget/tasklist.lua +++ b/lib/awful/widget/tasklist.lua @@ -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.