From 298f77335719be94f7092115b8ab95cf54aa6cc2 Mon Sep 17 00:00:00 2001 From: perry Date: Mon, 23 Nov 2009 09:44:32 -0800 Subject: [PATCH] Revert "awful.autofocus: fix multiple screens autofocus" This reverts commit 7575f64993c708c77597dacf28943a5cc37c0bf7. As seen on ML: Switching tags with multiple heads causes focus to change screens with this commit Signed-off-by: perry Signed-off-by: Julien Danjou --- lib/awful/autofocus.lua.in | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/awful/autofocus.lua.in b/lib/awful/autofocus.lua.in index bed228a9..923fabf3 100644 --- a/lib/awful/autofocus.lua.in +++ b/lib/awful/autofocus.lua.in @@ -20,13 +20,6 @@ local function check_focus(obj) local c = aclient.focus.history.get(obj.screen, 0) if c then client.focus = c 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 atag.attached_add_signal(nil, "property::selected", check_focus) -- 2.11.4.GIT