From 3f418ba79affd4f38bc16f89bdf83d5a0b891e22 Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Fri, 13 Feb 2009 21:20:23 +0100 Subject: [PATCH] lib/awful/menu.lua: fix item buttons Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- lib/awful/menu.lua.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index 1aa91d34..c268edbf 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -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