From f1871873aa4e196f2343690c935d6c8da300ffb5 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 10 Oct 2020 17:32:04 +0200 Subject: [PATCH] Fix setters/getters for grid layout direction properties Wow. This code was so weirdly broken, I have no words. Fixes: https://github.com/awesomeWM/awesome/issues/3198 Signed-off-by: Uli Schlachter --- lib/wibox/layout/grid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wibox/layout/grid.lua b/lib/wibox/layout/grid.lua index f04c5437d..44104a7d4 100644 --- a/lib/wibox/layout/grid.lua +++ b/lib/wibox/layout/grid.lua @@ -692,7 +692,7 @@ end -- getting the common property returns the directional property -- defined by the `orientation` property for _, prop in ipairs(dir_properties) do - for _,dir in ipairs{"horizontal_, vertical_"} do + for _,dir in ipairs{"horizontal", "vertical"} do local dir_prop = dir .. "_" .. prop grid["set_"..dir_prop] = function(self, value) if self._private[dir_prop] ~= value then