From 40b4387e6dde3488f47fbd4b8f72ce26a27442ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=96=9F=20=E2=96=96=E2=96=9F=20=E2=96=96?= Date: Sat, 18 Apr 2015 08:53:57 +0200 Subject: [PATCH] awful.menu: update t new layout api Apparently the style to get the direction of a wibox.layout.* changed from calling get_dir to just accessing the attribute dir. --- 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 17baa603..df6f59c9 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -102,7 +102,7 @@ end local function item_position(_menu, child) local in_dir, other, a, b = 0, 0, "height", "width" - local dir = _menu.layout.get_dir and _menu.layout:get_dir() or "y" + local dir = _menu.layout.dir or "y" if dir == "x" then a, b = b, a end local in_dir, other = 0, _menu[b] @@ -163,7 +163,7 @@ end local function set_size(_menu) local in_dir, other, a, b = 0, 0, "height", "width" - local dir = _menu.layout.get_dir and _menu.layout:get_dir() or "y" + local dir = _menu.layout.dir or "y" if dir == "x" then a, b = b, a end for _, item in ipairs(_menu.items) do other = math.max(other, item[b])