aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-05-12 17:44:45 (GMT)
committermarkt <markt>2007-05-12 17:44:45 (GMT)
commitaeafe360480c3f49895111e13438d640b33b1d96 (patch)
tree82ea0c515bc4b0099c9481e07d34b6b175624663
parent1a2779990a777715147df788524ace70ea88c822 (diff)
downloadfluxbox-aeafe360480c3f49895111e13438d640b33b1d96.zip
fluxbox-aeafe360480c3f49895111e13438d640b33b1d96.tar.bz2
fixed tabs disappearing on reconfigure with [Deco] {TAB} and tabs in titlebar
-rw-r--r--ChangeLog4
-rw-r--r--src/Screen.cc18
-rw-r--r--src/Window.cc4
3 files changed, 11 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index eb10656..dc89fbc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.1: 2Changes for 1.1:
3*07/05/12:
4 * Fixed tabs disappearing with [Deco] {TAB} and tabs in titlebar (Mark)
5 Window.cc Screen.cc
6*07/05/04:
3 * Fixed infinite loop caused by deiconify command (Mark) 7 * Fixed infinite loop caused by deiconify command (Mark)
4 FbCommands.cc 8 FbCommands.cc
5*07/04/24: 9*07/04/24:
diff --git a/src/Screen.cc b/src/Screen.cc
index 7bcd938..786daa1 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1046,24 +1046,14 @@ void BScreen::reconfigureTabs() {
1046 if (!(*w_it)->windowList().empty()) { 1046 if (!(*w_it)->windowList().empty()) {
1047 Workspace::Windows::iterator win_it = (*w_it)->windowList().begin(); 1047 Workspace::Windows::iterator win_it = (*w_it)->windowList().begin();
1048 const Workspace::Windows::iterator win_it_end = (*w_it)->windowList().end(); 1048 const Workspace::Windows::iterator win_it_end = (*w_it)->windowList().end();
1049 for (; win_it != win_it_end; ++win_it) { 1049 for (; win_it != win_it_end; ++win_it)
1050 (*win_it)->frame().updateTabProperties(); 1050 (*win_it)->applyDecorations();
1051 if (*resource.default_internal_tabs)
1052 (*win_it)->frame().setTabMode(FbWinFrame::INTERNAL);
1053 else
1054 (*win_it)->frame().setTabMode(FbWinFrame::EXTERNAL);
1055 }
1056 } 1051 }
1057 } 1052 }
1058 Icons::iterator icon_it = m_icon_list.begin(); 1053 Icons::iterator icon_it = m_icon_list.begin();
1059 Icons::iterator icon_it_end = m_icon_list.end(); 1054 Icons::iterator icon_it_end = m_icon_list.end();
1060 for (; icon_it != icon_it_end; ++icon_it) { 1055 for (; icon_it != icon_it_end; ++icon_it)
1061 (*icon_it)->frame().updateTabProperties(); 1056 (*icon_it)->applyDecorations();
1062 if (*resource.default_internal_tabs)
1063 (*icon_it)->frame().setTabMode(FbWinFrame::INTERNAL);
1064 else
1065 (*icon_it)->frame().setTabMode(FbWinFrame::EXTERNAL);
1066 }
1067} 1057}
1068 1058
1069 1059
diff --git a/src/Window.cc b/src/Window.cc
index cbbf7a4..a3999e3 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3122,8 +3122,10 @@ void FluxboxWindow::applyDecorations(bool initial) {
3122 if (decorations.titlebar) { 3122 if (decorations.titlebar) {
3123 bool change = frame().showTitlebar(); 3123 bool change = frame().showTitlebar();
3124 client_move |= change; 3124 client_move |= change;
3125 if (change && screen().getDefaultInternalTabs()) { 3125 if (screen().getDefaultInternalTabs()) {
3126 client_move |= frame().setTabMode(FbWinFrame::INTERNAL); 3126 client_move |= frame().setTabMode(FbWinFrame::INTERNAL);
3127 } else {
3128 client_move |= frame().setTabMode(FbWinFrame::EXTERNAL);
3127 } 3129 }
3128 } else { 3130 } else {
3129 client_move |= frame().hideTitlebar(); 3131 client_move |= frame().hideTitlebar();