X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d9d5a464cb032c99085e7f8fa60c11612db7bef1..233768f0963167af1d2621d10157cd64a87c904c:/widget/cal.lua diff --git a/widget/cal.lua b/widget/cal.lua index 50426ba..47e91a9 100644 --- a/widget/cal.lua +++ b/widget/cal.lua @@ -79,7 +79,7 @@ local function factory(args) cal.notification = nil end - function cal.show(timeout, month, year) + function cal.show(timeout, month, year, scr) cal.notification_preset.text = tconcat(cal.build(month, year)) if cal.three then @@ -95,6 +95,7 @@ local function factory(args) cal.hide() cal.notification = naughty.notify { preset = cal.notification_preset, + screen = cal.followtag and awful.screen.focused() or scr or 1, icon = cal.icon, timeout = timeout or cal.notification_preset.timeout or 5 }