mirror of https://github.com/lcpz/lain.git
prevent redrawing cal notification after change
This commit is contained in:
parent
3a6882af54
commit
e5774fd463
|
@ -139,7 +139,12 @@ local function factory(args)
|
||||||
cal.month, cal.year = current_month, current_year
|
cal.month, cal.year = current_month, current_year
|
||||||
end
|
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 {
|
cal.notification = naughty.notify {
|
||||||
preset = cal.notification_preset,
|
preset = cal.notification_preset,
|
||||||
screen = cal.followtag and awful.screen.focused() or scr or 1,
|
screen = cal.followtag and awful.screen.focused() or scr or 1,
|
||||||
|
|
Loading…
Reference in New Issue