1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 03:02:32 +00:00

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

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