prevent redrawing cal notification after change

This commit is contained in:
Czarnodziej 2021-03-26 18:40:10 +01:00 committed by Luca Capezzuto
parent 3a6882af54
commit e5774fd463
1 changed files with 6 additions and 1 deletions

View File

@ -139,7 +139,12 @@ local function factory(args)
cal.month, cal.year = current_month, current_year
end
cal.hide()
if cal.notification then
local title = cal.notification_preset.title or nil
naughty.replace_text(cal.notification, title, text)
return
end
cal.notification = naughty.notify {
preset = cal.notification_preset,
screen = cal.followtag and awful.screen.focused() or scr or 1,