destroy notification prior making new one
Sometimes the `mouse::leave` signal doesn't make it on time to destroy the old notification properly.
This commit is contained in:
parent
e14c578c48
commit
f7a19ff1bc
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue