naughty: mouse: only react on release events

Fixes https://github.com/awesomeWM/awesome/issues/1445.
This commit is contained in:
Daniel Hahler 2017-01-24 00:37:43 +01:00 committed by Uli Schlachter
parent 5a914b3496
commit dd339fd62a
1 changed files with 2 additions and 2 deletions

View File

@ -666,8 +666,8 @@ function naughty.notify(args)
notification.box:set_widget(completelayout)
-- Setup the mouse events
layout:buttons(util.table.join(button({ }, 1, run),
button({ }, 3, function()
layout:buttons(util.table.join(button({}, 1, nil, run),
button({}, 3, nil, function()
die(naughty.notificationClosedReason.dismissedByUser)
end)))