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:
parent
9f05eaf652
commit
c084eb5b08
|
@ -131,10 +131,12 @@ end
|
||||||
--- Update client focus history.
|
--- Update client focus history.
|
||||||
-- @param c The client that has been focused.
|
-- @param c The client that has been focused.
|
||||||
function focus.history.add(c)
|
function focus.history.add(c)
|
||||||
-- Remove the client if its in stack
|
if focus.filter(c) then
|
||||||
focus.history.delete(c)
|
-- Remove the client if its in stack
|
||||||
-- Record the client has latest focused
|
focus.history.delete(c)
|
||||||
table.insert(data.focus, 1, c)
|
-- Record the client has latest focused
|
||||||
|
table.insert(data.focus, 1, c)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get the latest focused client for a screen in history.
|
--- Get the latest focused client for a screen in history.
|
||||||
|
|
Loading…
Reference in New Issue