Thanks, it works ! So I can do that the awesome menu disappears when no
selection by click has bee done.
It remains to me to do that this menu appears only when the mouse goes
on its icon.
I tried :
-- c:add_signal("mouse::enter", function(x)
-- mymainmenu:show()
-- end)
but it does'nt work.
I assume it's because it's specific to the awful.menu function, which
makes the menu appearing only with a mouse click ?
Jean-Luc
Le 10/04/2010 22:32, Sergey Mironov a écrit :
Hm. Try to do the following:
mymenudrawericon = widget({ type = "imagebox" })
mymenudrawericon.image = image(beautiful.widget_menu)
-- ...
mymenudrawericon:add_signal("mouse::enter", function ()
mymenudirect:show()
end)
-- Comment it out
--mymenudrawericon:add_signal("mouse::leave", function ()
-- mymenudirect:hide()
--end)
-- Hook function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
-- Sets hook for any particular client @c
c:add_signal("mouse::enter", function(x)
mymenudirect:hide()
end)
end)
I can't test it now, but hope it will work.
--
To unsubscribe, send mail to [email protected].