From 523fcb16900d10e3433d167cf2e2b4b6b3b8fd7a Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Thu, 27 Aug 2009 14:26:54 +0200 Subject: [PATCH] widget.layout.horizontal: fix y coordinate Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- lib/awful/widget/layout/horizontal.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/widget/layout/horizontal.lua.in b/lib/awful/widget/layout/horizontal.lua.in index 2e7bf6d7..0914fab4 100644 --- a/lib/awful/widget/layout/horizontal.lua.in +++ b/lib/awful/widget/layout/horizontal.lua.in @@ -37,12 +37,12 @@ local function horizontal(direction, bounds, widgets, screen) end for _, v in ipairs(g) do v.x = v.x + x + v.y = v.y + (margins[v] and (margins[v].top and margins[v].top or 0) or 0) table.insert(geometries, v) end bounds = g.free if margins[v] then x = x + g.free.x + (margins[v].right or 0) - y = y + (margins[v].top or 0) bounds.width = bounds.width - (margins[v].right or 0) - (margins[v].left or 0) else x = x + g.free.x