From dd2874a0a1e0570bf873217d732f327fe9cc55b8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 16 Oct 2007 17:03:18 +0200 Subject: [PATCH] don't break existing tabs on tab() --- tab.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tab.c b/tab.c index fc226004..11d52bf3 100644 --- a/tab.c +++ b/tab.c @@ -81,7 +81,11 @@ uicb_tab(awesome_config *awesomeconf, { /* take the last tabbed window */ for(tmp = sel; tmp->tab.next; tmp = tmp->tab.next); + tmp->tab.next = c; + if(c->tab.prev) + c->tab.prev->tab.next = tmp; + c->tab.prev = tmp; c->tab.isvisible = False;