From 3cc64ab08190980ef36fc1213ab3935ccd5b786a Mon Sep 17 00:00:00 2001 From: koniu Date: Sat, 15 Nov 2008 15:25:22 +0000 Subject: [PATCH] naughty: fix a bug in destroy() + hooks.timer.unregister gets notification.die not .timer + remove pointless comments Signed-off-by: koniu --- lib/naughty.lua.in | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index f1fdac03..fb7b7d36 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -3,18 +3,6 @@ -- @copyright 2008 koniu -- @release @AWESOME_VERSION@ ---------------------------------------------------------------------------- --- --- Usage: --- --- require("naughty") --- naughty.notify({ text = "notification", --- title = "title", --- position = "top_left"|"top_right"|"bottom_left"|"bottom_right", --- timeout = 5, --- icon="/path/to/image", --- fg="#ffggcc", --- bg="#bbggcc", --- screen = 1 }) -- Package environment local pairs = pairs @@ -151,7 +139,7 @@ end function destroy(notification) if notification then notification.box.screen = nil - hooks.timer.unregister(notification.timer) + hooks.timer.unregister(notification.die) table.remove(notifications[notification.position], notification.idx) arrange() return true