From e79a5c59883d9d289d360d27c4c8d4431baa56df Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 6 Mar 2019 18:30:20 -0500 Subject: [PATCH] awful.widget: Add a `create_callback` to the common list. This is like its template equivalent, but "private" to the list widget. --- lib/awful/widget/common.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/awful/widget/common.lua b/lib/awful/widget/common.lua index c1d2e5ae7..043cece4d 100644 --- a/lib/awful/widget/common.lua +++ b/lib/awful/widget/common.lua @@ -116,6 +116,10 @@ function common.list_update(w, buttons, label, data, objects, args) cache.create_callback(cache.primary, o, i, objects) end + if args and args.create_callback then + args.create_callback(cache.primary, o, i, objects) + end + data[o] = cache elseif cache.update_callback then cache.update_callback(cache.primary, o, i, objects)