aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/fluxbox/files/patch-src-Tab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/fluxbox/files/patch-src-Tab.cc')
-rw-r--r--x11-wm/fluxbox/files/patch-src-Tab.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11-wm/fluxbox/files/patch-src-Tab.cc b/x11-wm/fluxbox/files/patch-src-Tab.cc
new file mode 100644
index 000000000000..81749dda5c2b
--- /dev/null
+++ b/x11-wm/fluxbox/files/patch-src-Tab.cc
@@ -0,0 +1,19 @@
+--- src/Tab.cc.orig Tue Feb 25 03:00:22 2003
++++ src/Tab.cc Tue Feb 25 03:01:31 2003
+@@ -1011,14 +1011,14 @@
+ Fluxbox *fluxbox = Fluxbox::instance();
+ if (m_prev) { //if this have a chain to "the left" (previous tab) then set it's next to this next
+ m_prev->m_next = m_next;
+- if(!m_next && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window
++ if(!m_next && !m_prev->m_prev && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window
+ m_prev->m_win->setTab(false);
+ else
+ tmp = m_prev;
+ }
+ if (m_next) { //if this have a chain to "the right" (next tab) then set it's prev to this prev
+ m_next->m_prev = m_prev;
+- if(!m_prev && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window
++ if(!m_prev && !m_next->m_next && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window
+ m_next->m_win->setTab(false);
+ else
+ tmp = m_next;