awful.menu: fix auto_expand attribute copy between parent and child

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-02-23 14:19:49 +01:00
parent 37d2fb6781
commit b282bf0086
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,8 @@ function new(menu, parent, num)
data.theme = parent and parent.theme or load_theme(menu)
data.parent = parent
data.child = {}
if parent and parent.auto_expand then
data.auto_expand = true
if parent then
data.auto_expand = parent.auto_expand
elseif menu.auto_expand ~= nil then
data.auto_expand = menu.auto_expand
else