refactor
This commit is contained in:
parent
621819c64f
commit
05896c56dd
20
init.lua
20
init.lua
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue