Use focus.filter in awful.client.focus.(global_)bydirection
This commit is contained in:
parent
86b6c49a0f
commit
76e3cc4799
|
@ -174,8 +174,10 @@ function focus.bydirection(dir, c, stacked)
|
|||
local cltbl = client.visible(sel.screen, stacked)
|
||||
local geomtbl = {}
|
||||
for i,cl in ipairs(cltbl) do
|
||||
if focus.filter(cl) then
|
||||
geomtbl[i] = cl:geometry()
|
||||
end
|
||||
end
|
||||
|
||||
local target = grect.get_in_direction(dir, geomtbl, sel:geometry())
|
||||
|
||||
|
@ -211,8 +213,10 @@ function focus.global_bydirection(dir, c, stacked)
|
|||
local cltbl = client.visible(screen.focused(), stacked)
|
||||
local geomtbl = {}
|
||||
for i,cl in ipairs(cltbl) do
|
||||
if focus.filter(cl) then
|
||||
geomtbl[i] = cl:geometry()
|
||||
end
|
||||
end
|
||||
local target = grect.get_in_direction(dir, geomtbl, scr.geometry)
|
||||
|
||||
if target then
|
||||
|
|
Loading…
Reference in New Issue