From 61359d035281a58144094e79b01a3f2400940e01 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 9 Jan 2009 12:39:27 +0100 Subject: [PATCH] awful.placement: fix name collision Signed-off-by: Julien Danjou --- lib/awful/placement.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/placement.lua.in b/lib/awful/placement.lua.in index a23e2d629..7d45c75fc 100644 --- a/lib/awful/placement.lua.in +++ b/lib/awful/placement.lua.in @@ -123,11 +123,11 @@ end -- @param c The client. function no_overlap(c) local cls = client.visible(c.screen) - local layout = layout.get() + local curlay = layout.get() local areas = { capi.screen[c.screen].workarea } local geometry = c:geometry() for i, cl in pairs(cls) do - if cl ~= c and (client.floating.get(cl) or layout == layout.suit.floating) then + if cl ~= c and (client.floating.get(cl) or curlay == layout.suit.floating) then areas = area_remove(areas, cl:geometry()) end end