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:
parent
05d991d452
commit
938ba52201
|
@ -403,7 +403,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
|
||||||
|
|
Loading…
Reference in New Issue