tabulous: do not swap clients in display

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maxime COSTE 2008-12-09 16:03:55 +01:00 committed by Julien Danjou
parent c7a7437433
commit 22b7a79313
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,6 @@ function display(tabindex, cl)
tabbed[tabindex][1] = cl
cl.hide = false
cl:swap(p)
p.hide = true
capi.client.focus = cl
awful.hooks.user.call('tabhide', p)
@ -144,7 +143,7 @@ function prev(tabindex, cl)
return nil
end
if tabbed[tabindex][2][i-1] == nil then
if i == 1 then
return tabbed[tabindex][2][table.maxn(tabbed[tabindex][2])]
end
@ -175,6 +174,7 @@ function untab(cl)
c.hide = false
awful.hooks.user.call('untabbed', c)
return true
end
--- Untab all clients in a tabbed display.