From c0dffca646c1a02276da510bf3587fb7fad8e0e9 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 6 Apr 2012 12:19:12 +0200 Subject: [PATCH] Focus history: Don't ignore unfocusable clients The only caller of focus.history.add() should be the "focus" signal, so at that time the unfocusable client already does have the focus. At that point, there is no reason why this shouldn't be recorded in the focus history. (And yes, unfocusable clients can be focused. Don't ask.) This should hopefully fix FS#778. Signed-off-by: Uli Schlachter --- lib/awful/client.lua.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index cf78c9f7..6dd74d29 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -131,12 +131,10 @@ end --- Update client focus history. -- @param c The client that has been focused. function focus.history.add(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 + -- Remove the client if its in stack + focus.history.delete(c) + -- Record the client has latest focused + table.insert(data.focus, 1, c) end --- Get the latest focused client for a screen in history.