awful.client: fix local function idx

Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-08-26 14:35:44 +02:00 committed by Julien Danjou
parent c9ec34e61e
commit efbba53507
1 changed files with 1 additions and 0 deletions

View File

@ -678,6 +678,7 @@ local function idx(c)
end end
end end
local t = tag.selected(c.screen)
local nmaster = tag.getnmaster(t) local nmaster = tag.getnmaster(t)
if idx <= nmaster then if idx <= nmaster then
return {idx = idx, col=0, num=nmaster} return {idx = idx, col=0, num=nmaster}