naughty: notify{run} gets notification object argument (FS#398)
commit49258e7805a098c90adb667577114bdc19b70b2d
authorkoniu <gkusnierz@gmail.com>
Wed, 3 Dec 2008 22:52:59 +0000 (3 22:52 +0000)
committerJulien Danjou <julien@danjou.info>
Sun, 14 Dec 2008 09:28:23 +0000 (14 10:28 +0100)
tree4999f4859c0eb4764f90ab5acf9085490081e5cc
parent0235d995c2c5c624f87d5dd42e976320fc1a1b8c
naughty: notify{run} gets notification object argument (FS#398)

Notifications will not be destroyed on 'run' execution unless the
provided 'run' function explicitly invokes die()/destroy(). For this
purpose run can now receive the notification object as argument.

naughty.notify{ text = 'hi',
                run = function(n)
                    awful.util.spawn('firefox')
                    n.die()
                end
}

Signed-off-by: koniu <gkusnierz@gmail.com>
lib/naughty.lua.in