awful.menu: Fix for removal of screen property

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-03-27 16:36:20 +02:00
parent ca5337e731
commit 646eaad18e
1 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ function hide(menu)
-- Remove items from screen -- Remove items from screen
for i = 1, #menu.items do for i = 1, #menu.items do
item_leave(menu, i) item_leave(menu, i)
menu.items[i].wibox.screen = nil menu.items[i].wibox.visible = false
end end
if menu.active_child then if menu.active_child then
menu.active_child:hide() menu.active_child:hide()
@ -364,7 +364,7 @@ function show(menu, args)
wibox.height = menu.h wibox.height = menu.h
wibox.x = menu.x wibox.x = menu.x
wibox.y = menu.y + (num - 1) * (menu.h + wibox.border_width) wibox.y = menu.y + (num - 1) * (menu.h + wibox.border_width)
wibox.screen = screen_index wibox.visible = true
end end
if menu.parent then if menu.parent then
@ -386,7 +386,7 @@ end
-- @param args.keygrabber A boolean enabling or not the keyboard navigation. -- @param args.keygrabber A boolean enabling or not the keyboard navigation.
-- @param args.coords Menu position {x,y} -- @param args.coords Menu position {x,y}
function toggle(menu, args) function toggle(menu, args)
if menu.items[1] and menu.items[1].wibox.screen then if menu.items[1] and menu.items[1].wibox.visible then
menu:hide() menu:hide()
else else
menu:show(args) menu:show(args)