From d1e9c0d5e9e8fe86abfadfae271301d08f201067 Mon Sep 17 00:00:00 2001 From: Vincent Mauge Date: Wed, 6 May 2009 23:46:39 +0200 Subject: [PATCH] Remove useless loop in hide() Signed-off-by: Julien Danjou --- lib/awful/menu.lua.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index c7402e909..24f98bb57 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -65,10 +65,7 @@ end function hide(menu) -- Remove items from screen for i = 1, #menu.items do - -- Call mouse_leave to clear menu entry - for k, w in pairs(menu.items[i].wibox.widgets) do - item_leave(menu, i) - end + item_leave(menu, i) menu.items[i].wibox.screen = nil end if menu.active_child then