From 22b7a7931314e546269de12367a7e23b20e91c0f Mon Sep 17 00:00:00 2001 From: Maxime COSTE Date: Tue, 9 Dec 2008 16:03:55 +0100 Subject: [PATCH] tabulous: do not swap clients in display Signed-off-by: Julien Danjou --- lib/tabulous.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tabulous.lua.in b/lib/tabulous.lua.in index 6e0e7709..caf9819d 100644 --- a/lib/tabulous.lua.in +++ b/lib/tabulous.lua.in @@ -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.