From 61947ec1c892ce5314495404f3b084bebebd302d Mon Sep 17 00:00:00 2001 From: koniu Date: Sat, 22 Nov 2008 17:49:27 +0000 Subject: [PATCH] naughty: fix a bug on timeout when popup was destroyed by hover_timeout Signed-off-by: koniu --- lib/naughty.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index de4880ea..310ab4b4 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -152,7 +152,7 @@ end -- @param notification Notification object to be destroyed -- @return True if the popup was successfully destroyed, nil otherwise function destroy(notification) - if notification then + if notification and notification.box.screen then local scr = notification.box.screen table.remove(notifications[notification.box.screen][notification.position], notification.idx) hooks.timer.unregister(notification.die)