mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
awful.placement: fix name collision
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8c83287e10
commit
61359d0352
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue