don't break existing tabs on tab()

This commit is contained in:
Julien Danjou 2007-10-16 17:03:18 +02:00
parent 7ecbae334f
commit dd2874a0a1
1 changed files with 4 additions and 0 deletions

4
tab.c
View File

@ -81,7 +81,11 @@ uicb_tab(awesome_config *awesomeconf,
{ {
/* take the last tabbed window */ /* take the last tabbed window */
for(tmp = sel; tmp->tab.next; tmp = tmp->tab.next); for(tmp = sel; tmp->tab.next; tmp = tmp->tab.next);
tmp->tab.next = c; tmp->tab.next = c;
if(c->tab.prev)
c->tab.prev->tab.next = tmp;
c->tab.prev = tmp; c->tab.prev = tmp;
c->tab.isvisible = False; c->tab.isvisible = False;