calendar, #289: instead of setting timeout, don't show at all

This commit is contained in:
copycat-killer 2017-02-09 18:27:31 +01:00
parent 586c54a257
commit 1c04624c0a
1 changed files with 8 additions and 7 deletions

View File

@ -79,13 +79,14 @@ function calendar.show(t_out, inc_offset, scr)
end
end
calendar.hide()
calendar.notification = naughty.notify({
preset = calendar.notification_preset,
icon = calendar.icon,
timeout = (widget_focused and t_out) or calendar.notification_preset.timeout or 5
})
if widget_focused then
calendar.hide()
calendar.notification = naughty.notify({
preset = calendar.notification_preset,
icon = calendar.icon,
timeout = t_out or calendar.notification_preset.timeout or 5
})
end
end)
end