From b282bf0086616b67fc288ccd34a2b3deee6a47e5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 23 Feb 2009 14:19:49 +0100 Subject: [PATCH] awful.menu: fix auto_expand attribute copy between parent and child Signed-off-by: Julien Danjou --- lib/awful/menu.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index 0bda9f1d4..dbc446257 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -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