[tabulous] Fix merge to wrong tabindex

This commit is contained in:
Lucas de Vries 2008-06-11 13:24:38 +02:00 committed by Julien Danjou
parent 8c9995354a
commit 0918db5766
1 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ local client = client
local table = table local table = table
local pairs = pairs local pairs = pairs
local awful = awful local awful = awful
local print = print
-- Reset env -- Reset env
setfenv(1, P) setfenv(1, P)
@ -199,11 +200,14 @@ local function client_tab(tabindex, cl)
client_display(tabindex, c) client_display(tabindex, c)
awful.hooks.userhook_call('tabbed', {c}) awful.hooks.userhook_call('tabbed', {c})
else elseif x ~= tabindex then
-- Merge two tabbed views -- Merge two tabbed views
local cc = tabbed[tabindex][1]
local clients = client_get_clients(x) local clients = client_get_clients(x)
client_untab_all(x) client_untab_all(x)
tabindex = client_find_tabindex(cc)
for i,b in pairs(clients) do for i,b in pairs(clients) do
client_tab(tabindex, b) client_tab(tabindex, b)
end end