rewrite hide function for menu; #291

This commit is contained in:
Luca Capezzuto 2021-08-20 19:13:53 +02:00
parent 7aeb2641b5
commit e995f1c833
No known key found for this signature in database
GPG Key ID: 4E53F7C0EC846979
1 changed files with 17 additions and 2 deletions

View File

@ -197,8 +197,23 @@ awful.util.mymainmenu = freedesktop.menu.build {
}
}
-- hide menu when mouse leaves it
--awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function() awful.util.mymainmenu:hide() end)
-- Hide the menu when the mouse leaves it
--[[
awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function()
if not awful.util.mymainmenu.active_child or
(awful.util.mymainmenu.wibox ~= mouse.current_wibox and
awful.util.mymainmenu.active_child.wibox ~= mouse.current_wibox) then
awful.util.mymainmenu:hide()
else
awful.util.mymainmenu.active_child.wibox:connect_signal("mouse::leave",
function()
if awful.util.mymainmenu.wibox ~= mouse.current_wibox then
awful.util.mymainmenu:hide()
end
end)
end
end)
--]]
-- Set the Menubar terminal for applications that require it
--menubar.utils.terminal = terminal