X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ce9c97aa927a448ca4158104538118c350114b22..b9e2596cbddd1d932aa4b6bbd2226a6016b1004e:/widgets/imap.lua?ds=inline diff --git a/widgets/imap.lua b/widgets/imap.lua index 6104388..c404032 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -74,7 +74,11 @@ local function worker(args) else nt = mail .. " has " .. mailcount .. " new messages" end - naughty.notify({ preset = mail_notification_preset, text = nt }) + naughty.notify({ + preset = mail_notification_preset, + text = nt, + screen = client.focus and client.focus.screen or 1 + }) end helpers.set_map(mail, mailcount)