awful.menu: only listen mouse::enter on wibox

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-20 18:16:03 +02:00
parent 2fda9f5a2e
commit 630748ef61
1 changed files with 0 additions and 4 deletions

View File

@ -201,8 +201,6 @@ local function add_item(data, num, item_info)
item:buttons(bindings) item:buttons(bindings)
local mouse_enter_func = function () item_enter(data, num, true) end local mouse_enter_func = function () item_enter(data, num, true) end
label:add_signal("mouse::enter", mouse_enter_func)
item:add_signal("mouse::enter", mouse_enter_func) item:add_signal("mouse::enter", mouse_enter_func)
-- Create the submenu icon widget -- Create the submenu icon widget
@ -211,8 +209,6 @@ local function add_item(data, num, item_info)
submenu = widget({ type = "imagebox" }) submenu = widget({ type = "imagebox" })
submenu.image = data.theme.submenu_icon and image(data.theme.submenu_icon) submenu.image = data.theme.submenu_icon and image(data.theme.submenu_icon)
submenu:buttons(bindings) submenu:buttons(bindings)
submenu:add_signal("mouse::enter", mouse_enter_func)
end end
-- Add widgets to the wibox -- Add widgets to the wibox