awful.client.setslave: Fix for not-visible clients
commitfa1ca8070550aa6c92715f62bd4db8573e39208e
authorUli Schlachter <psychon@znc.in>
Sat, 5 May 2012 08:04:51 +0000 (5 10:04 +0200)
committerUli Schlachter <psychon@znc.in>
Sat, 5 May 2012 08:04:51 +0000 (5 10:04 +0200)
tree14e4581017256951dfcbe6f37b11196ad4fe5153
parentd121d943660a6ad2cd2ca88585091ed75c45acfc
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>
lib/awful/client.lua.in