From 03e08257fbbb05d5ad03cd86dc8be67d65440c4e Mon Sep 17 00:00:00 2001 From: koniu Date: Tue, 25 Nov 2008 05:45:40 +0000 Subject: [PATCH] naughty: notification.run destroys the popup Popups that have mouse button 1 tied to a function (run) will be destroyed upon execution. Signed-off-by: koniu --- lib/naughty.lua.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 59f18e51..a43312e0 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -259,7 +259,10 @@ function notify(args) hooks.timer.register(timeout, die) notification.die = die - local run = args.run or die + local run = function () + if args.run then args.run() end + die() + end local hover_destroy = function () if hover_timeout == 0 then die()