From a4e598d444b7f77159d0cd8e73cf8352fda94041 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 7 Feb 2016 14:19:12 +0100 Subject: [PATCH] Fix naughty.reset_timeout Signed-off-by: Uli Schlachter --- lib/naughty/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty/core.lua b/lib/naughty/core.lua index 817b81ae6..f9a863959 100644 --- a/lib/naughty/core.lua +++ b/lib/naughty/core.lua @@ -325,7 +325,7 @@ end function naughty.reset_timeout(notification, new_timeout) if notification.timer then notification.timer:stop() end - local timeout = timeout or notification.timeout + local timeout = new_timeout or notification.timeout set_timeout(notification, timeout) notification.timeout = timeout