diff --git a/lib/awful/placement.lua.in b/lib/awful/placement.lua.in index a23e2d62..7d45c75f 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