Added args fallback

This commit is contained in:
Gokul Swaminathan 2022-11-21 21:24:51 -08:00
parent c8adfe6a90
commit 0af96c00f8
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ local function get_widget_geometry(wibox, widget)
end
function task_preview:show(c, args)
args = args or {}
args = args or self.args or {}
args.coords = args.coords or self.coords
args.wibox = args.wibox
@ -256,4 +256,4 @@ function task_preview.mt:__call(...)
return new(...)
end
return setmetatable(task_preview, task_preview.mt)
return setmetatable(task_preview, task_preview.mt)