Skip to content

Commit

Permalink
Fix setters/getters for grid layout direction properties
Browse files Browse the repository at this point in the history
Wow. This code was so weirdly broken, I have no words.

Fixes: awesomeWM#3198
Signed-off-by: Uli Schlachter <[email protected]>
  • Loading branch information
psychon committed Oct 10, 2020
1 parent ed6cdf8 commit f187187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wibox/layout/grid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f187187

Please sign in to comment.