From 938ba52201d7f7d9694ea222a18f013de1dc711f 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 6dd74d29..8dab72c7 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -403,7 +403,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