Change listing condition to any intersection.
This commit is contained in:
parent
d6d75423d9
commit
65dfbb23a5
|
@ -111,8 +111,8 @@ function module.start(c, exit_keys)
|
||||||
for _, tc in ipairs(screen.tiled_clients) do
|
for _, tc in ipairs(screen.tiled_clients) do
|
||||||
if not (tc.floating or tc.immobilized)
|
if not (tc.floating or tc.immobilized)
|
||||||
then
|
then
|
||||||
if regions[active_region].x <= tc.x and tc.x + tc.width + tc.border_width * 2 <= regions[active_region].x + regions[active_region].width 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
|
||||||
regions[active_region].y <= tc.y and tc.y + tc.height + tc.border_width * 2 <= regions[active_region].y + regions[active_region].height
|
regions[active_region].y <= tc.y + tc.height + tc.border_width * 2 and tc.y <= regions[active_region].y + regions[active_region].height
|
||||||
then
|
then
|
||||||
tablist[#tablist + 1] = tc
|
tablist[#tablist + 1] = tc
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue