shims: Fix indentation

This commit is contained in:
Emmanuel Lepage Vallee 2019-04-27 16:43:02 -04:00
parent 1617c894cc
commit f7c0f419e9
1 changed files with 20 additions and 20 deletions

View File

@ -40,26 +40,26 @@ local function create_screen(args)
end end
return setmetatable(s,{ __index = function(_, key) return setmetatable(s,{ __index = function(_, key)
if key == "geometry" then if key == "geometry" then
return { return {
x = geo.x or 0, x = geo.x or 0,
y = geo.y or 0, y = geo.y or 0,
width = geo.width , width = geo.width ,
height = geo.height, height = geo.height,
} }
elseif key == "workarea" then elseif key == "workarea" then
return { return {
x = (geo.x or 0) + wa , x = (geo.x or 0) + wa ,
y = (geo.y or 0) + wa , y = (geo.y or 0) + wa ,
width = geo.width - 2*wa, width = geo.width - 2*wa,
height = geo.height - 2*wa, height = geo.height - 2*wa,
} }
else else
return meta.__index(_, key) return meta.__index(_, key)
end end
end, end,
__newindex = function(...) return meta.__newindex(...) end __newindex = function(...) return meta.__newindex(...) end
}) })
end end
local screens = {} local screens = {}