tabulous: do not swap clients in display
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c7a7437433
commit
22b7a79313
|
@ -51,7 +51,6 @@ function display(tabindex, cl)
|
||||||
tabbed[tabindex][1] = cl
|
tabbed[tabindex][1] = cl
|
||||||
|
|
||||||
cl.hide = false
|
cl.hide = false
|
||||||
cl:swap(p)
|
|
||||||
p.hide = true
|
p.hide = true
|
||||||
capi.client.focus = cl
|
capi.client.focus = cl
|
||||||
awful.hooks.user.call('tabhide', p)
|
awful.hooks.user.call('tabhide', p)
|
||||||
|
@ -144,7 +143,7 @@ function prev(tabindex, cl)
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if tabbed[tabindex][2][i-1] == nil then
|
if i == 1 then
|
||||||
return tabbed[tabindex][2][table.maxn(tabbed[tabindex][2])]
|
return tabbed[tabindex][2][table.maxn(tabbed[tabindex][2])]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -175,6 +174,7 @@ function untab(cl)
|
||||||
|
|
||||||
c.hide = false
|
c.hide = false
|
||||||
awful.hooks.user.call('untabbed', c)
|
awful.hooks.user.call('untabbed', c)
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Untab all clients in a tabbed display.
|
--- Untab all clients in a tabbed display.
|
||||||
|
|
Loading…
Reference in New Issue