Skip to content

Commit

Permalink
prevent redrawing cal notification after change
Browse files Browse the repository at this point in the history
  • Loading branch information
Czarnodziej authored and lcpz committed Mar 28, 2021
1 parent 3a6882a commit e5774fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion widget/cal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e5774fd

Please sign in to comment.