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