From fa1ca8070550aa6c92715f62bd4db8573e39208e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 5 May 2012 10:04:51 +0200 Subject: [PATCH] awful.client.setslave: Fix for not-visible clients Previously, setslave() put a client only at the end of the list of visible clients. Obviously this means that it didn't do anything helpful if the target client was not visible. Fix this by iterating over all clients on the target screen instead of just the visible ones. Signed-off-by: Uli Schlachter --- lib/awful/client.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 79d5fa91..ccfe575f 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -412,7 +412,7 @@ end --- Set the client as slave: put it at the end of other windows. -- @param c The window to set as slave. function setslave(c) - local cls = visible(c.screen) + local cls = capi.client.get(screen) for k, v in pairs(cls) do c:swap(v) end