From dd3658bb1c3ce60459f4a824339dbeab45d9737c Mon Sep 17 00:00:00 2001 From: Anatolii Aniskovych Date: Wed, 16 May 2018 23:37:37 +0300 Subject: [PATCH] awful.placement: Ignore fullscreen/maximized clients in no_overlap() Fullscreen/maximized client takes full workspace area making free space detection logic useless. --- lib/awful/placement.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index db4dd87f..d0da647c 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -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