Revert "Focus history: Don't ignore unfocusable clients"

This reverts commit c0dffca646 which caused
FS#1011. This is just too much breakage which can't easily be fixed in 3.4.
This commit is contained in:
Uli Schlachter 2012-07-06 17:32:53 +02:00
parent 9f05eaf652
commit c084eb5b08
1 changed files with 6 additions and 4 deletions

View File

@ -131,10 +131,12 @@ end
--- Update client focus history.
-- @param c The client that has been focused.
function focus.history.add(c)
-- Remove the client if its in stack
focus.history.delete(c)
-- Record the client has latest focused
table.insert(data.focus, 1, c)
if focus.filter(c) then
-- Remove the client if its in stack
focus.history.delete(c)
-- Record the client has latest focused
table.insert(data.focus, 1, c)
end
end
--- Get the latest focused client for a screen in history.