From f7a19ff1bc9ace0e9baa3c2828ad527bda098376 Mon Sep 17 00:00:00 2001 From: Jakub Podlaha Date: Tue, 26 Mar 2019 11:18:21 +0100 Subject: [PATCH] destroy notification prior making new one Sometimes the `mouse::leave` signal doesn't make it on time to destroy the old notification properly. --- battery-widget/battery.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index d59fdc6..6d9f086 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -35,6 +35,7 @@ local notification local function show_battery_status() awful.spawn.easy_async([[bash -c 'acpi']], function(stdout, _, _, _) + naughty.destroy(notification) notification = naughty.notify{ text = stdout, title = "Battery status",