stop keygrabber on hide through click

fixes #2434
This commit is contained in:
Peter Nerlich 2018-10-15 12:09:20 +02:00 committed by actionless
parent f1541a87b8
commit e55cc7c912
1 changed files with 2 additions and 2 deletions

View File

@ -451,8 +451,8 @@ function widget.new(args)
})
mywibox:set_widget(pages[1])
mywibox:buttons(gtable.join(
awful.button({ }, 1, function () mywibox.visible=false end),
awful.button({ }, 3, function () mywibox.visible=false end)
awful.button({ }, 1, function () mywibox.visible=false awful.keygrabber:stop() end),
awful.button({ }, 3, function () mywibox.visible=false awful.keygrabber:stop() end)
))
local widget_obj = {}