Revert "awful.autofocus: fix multiple screens autofocus"

This reverts commit 7575f64993.

As seen on ML:

Switching tags with multiple heads causes focus to change
screens with this commit

Signed-off-by: perry <perry.hargrave@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
perry 2009-11-23 09:44:32 -08:00 committed by Julien Danjou
parent cb262809dd
commit cb8eac8ccf
1 changed files with 0 additions and 7 deletions

View File

@ -20,13 +20,6 @@ local function check_focus(obj)
local c = aclient.focus.history.get(obj.screen, 0) local c = aclient.focus.history.get(obj.screen, 0)
if c then client.focus = c end if c then client.focus = c end
end end
-- If we didn't find a client, try other screens.
if not client.focus or not client.focus:isvisible() then
for i = 1, screen.count() do
local c = aclient.focus.history.get(i, 0)
if c and c:isvisible() then client.focus = c; return end
end
end
end end
atag.attached_add_signal(nil, "property::selected", check_focus) atag.attached_add_signal(nil, "property::selected", check_focus)