rewrite hide function for menu; #291
This commit is contained in:
parent
7aeb2641b5
commit
e995f1c833
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue