This commit is contained in:
anakha 2021-06-10 10:36:59 -04:00
parent 621819c64f
commit 05896c56dd
1 changed files with 10 additions and 10 deletions

View File

@ -34,16 +34,16 @@ local function region_tablist()
end end
--+ focused client's region --+ focused client's region
for _, tc in ipairs(screen[1].tiled_clients) do for _, tc in ipairs(screen[focused_screen].tiled_clients) do
if not (tc.floating or tc.immobilized) then if not (tc.floating or tc.immobilized) then
if regions[active_region].x <= tc.x + tc.width + tc.border_width * 2 and if regions[active_region].x <= tc.x + tc.width + tc.border_width * 2 and
tc.x <= regions[active_region].x + regions[active_region].width and tc.x <= regions[active_region].x + regions[active_region].width and
regions[active_region].y <= tc.y + tc.height + tc.border_width * 2 and regions[active_region].y <= tc.y + tc.height + tc.border_width * 2 and
tc.y <= regions[active_region].y + regions[active_region].height tc.y <= regions[active_region].y + regions[active_region].height
then then
tablist[#tablist + 1] = tc tablist[#tablist + 1] = tc
end end
end end
end end
--+ tablist inside the active region --+ tablist inside the active region