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:
parent
347238b57a
commit
dd3658bb1c
|
@ -874,7 +874,10 @@ function placement.no_overlap(c, args)
|
||||||
local curlay = layout.get()
|
local curlay = layout.get()
|
||||||
local areas = { screen.workarea }
|
local areas = { screen.workarea }
|
||||||
for _, cl in pairs(cls) do
|
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))
|
areas = grect.area_remove(areas, area_common(cl))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue