Fix client.cycle's screen param handling

Broken since fc950f6.

Closes https://github.com/awesomeWM/awesome/pull/443.
This commit is contained in:
Daniel Hahler 2015-09-10 20:16:53 +02:00
parent fbc72624d7
commit 52154d0f15
1 changed files with 2 additions and 2 deletions

View File

@ -430,9 +430,9 @@ end
-- @param clockwise True to cycle clients clockwise. -- @param clockwise True to cycle clients clockwise.
-- @param[opt] screen The screen where to cycle clients. -- @param[opt] screen The screen where to cycle clients.
-- @tparam[opt=false] boolean stacked Use stacking order? -- @tparam[opt=false] boolean stacked Use stacking order?
function client.cycle(clockwise, screen, stacked) function client.cycle(clockwise, s, stacked)
s = s or screen.focused() s = s or screen.focused()
local cls = client.visible(screen, stacked) local cls = client.visible(s, stacked)
-- We can't rotate without at least 2 clients, buddy. -- We can't rotate without at least 2 clients, buddy.
if #cls >= 2 then if #cls >= 2 then
local c = table.remove(cls, 1) local c = table.remove(cls, 1)