awful.placement: fix name collision

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-01-09 12:39:27 +01:00
parent 8c83287e10
commit 61359d0352

View file

@ -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