awful.placement: Ignore fullscreen/maximized clients in no_overlap()

Fullscreen/maximized client takes full workspace area making free space detection logic useless.
This commit is contained in:
Anatolii Aniskovych 2018-05-16 23:37:37 +03:00
parent 347238b57a
commit dd3658bb1c
1 changed files with 4 additions and 1 deletions

View File

@ -874,7 +874,10 @@ function placement.no_overlap(c, args)
local curlay = layout.get()
local areas = { screen.workarea }
for _, cl in pairs(cls) do
if cl ~= c and cl.type ~= "desktop" and (cl.floating or curlay == layout.suit.floating) then
if cl ~= c
and cl.type ~= "desktop"
and (cl.floating or curlay == layout.suit.floating)
and not (cl.maximized or cl.fullscreen) then
areas = grect.area_remove(areas, area_common(cl))
end
end