From 3a4761732c5450069aca65e4ba5df8d5a5ee69d6 Mon Sep 17 00:00:00 2001 From: dodo Date: Thu, 31 Mar 2011 11:56:11 +0200 Subject: [PATCH] awful.menu: handling with strings Signed-off-by: Uli Schlachter --- lib/awful/menu.lua.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index b27d42d5..b222747f 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -88,6 +88,9 @@ local function load_theme(a, b) fallback.menu_height or 16 ret.width = a.width or b.menu_width or b.width or fallback.menu_width or 100 + for _, prop in ipairs({"width", "height", "menu_width"}) do + if type(ret[prop]) ~= "number" then ret[prop] = tonumber(ret[prop]) end + end return ret end