awful.menu: only listen mouse::enter on wibox
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2fda9f5a2e
commit
630748ef61
|
@ -201,8 +201,6 @@ local function add_item(data, num, item_info)
|
|||
item:buttons(bindings)
|
||||
|
||||
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)
|
||||
|
||||
-- Create the submenu icon widget
|
||||
|
@ -211,8 +209,6 @@ local function add_item(data, num, item_info)
|
|||
submenu = widget({ type = "imagebox" })
|
||||
submenu.image = data.theme.submenu_icon and image(data.theme.submenu_icon)
|
||||
submenu:buttons(bindings)
|
||||
|
||||
submenu:add_signal("mouse::enter", mouse_enter_func)
|
||||
end
|
||||
|
||||
-- Add widgets to the wibox
|
||||
|
|
Loading…
Reference in New Issue