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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-05-05 10:04:51 +02:00
parent d121d94366
commit fa1ca80705
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ end
--- Set the client as slave: put it at the end of other windows. --- Set the client as slave: put it at the end of other windows.
-- @param c The window to set as slave. -- @param c The window to set as slave.
function setslave(c) function setslave(c)
local cls = visible(c.screen) local cls = capi.client.get(screen)
for k, v in pairs(cls) do for k, v in pairs(cls) do
c:swap(v) c:swap(v)
end end