From 52154d0f15b99b148c73934d27a49350803d02e5 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 10 Sep 2015 20:16:53 +0200 Subject: [PATCH] Fix client.cycle's screen param handling Broken since fc950f6. Closes https://github.com/awesomeWM/awesome/pull/443. --- lib/awful/client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 17a0a825..61b73b9d 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -430,9 +430,9 @@ end -- @param clockwise True to cycle clients clockwise. -- @param[opt] screen The screen where to cycle clients. -- @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() - local cls = client.visible(screen, stacked) + local cls = client.visible(s, stacked) -- We can't rotate without at least 2 clients, buddy. if #cls >= 2 then local c = table.remove(cls, 1)