From e5774fd463d8815dbdfd34a4ebc2299abb02ae82 Mon Sep 17 00:00:00 2001 From: Czarnodziej Date: Fri, 26 Mar 2021 18:40:10 +0100 Subject: [PATCH] prevent redrawing cal notification after change --- widget/cal.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/widget/cal.lua b/widget/cal.lua index e7f946f..1446a33 100644 --- a/widget/cal.lua +++ b/widget/cal.lua @@ -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,