lib/awful/menu.lua: fix item buttons

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-02-13 21:20:23 +01:00 committed by Julien Danjou
parent 10bfb36d4b
commit 3f418ba79a
1 changed files with 4 additions and 0 deletions

View File

@ -134,10 +134,14 @@ local function add_item(data, num, item_info)
end
label:buttons(bindings)
item:buttons(bindings)
function label.mouse_enter() mouse_enter(item, data.theme) end
function label.mouse_leave() mouse_leave(item, data.theme) end
function item.mouse_enter() mouse_enter(item, data.theme) end
function item.mouse_leave() mouse_leave(item, data.theme) end
-- Create the submenu icon widget
local submenu
if type(item_info[2]) == "table" then