From c084eb5b085287e4fb2661e834197cf8cf233215 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 6 Jul 2012 17:32:53 +0200 Subject: [PATCH] Revert "Focus history: Don't ignore unfocusable clients" This reverts commit c0dffca646c1a02276da510bf3587fb7fad8e0e9 which caused FS#1011. This is just too much breakage which can't easily be fixed in 3.4. --- lib/awful/client.lua.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 8dab72c7..6058bcde 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -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.