aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 160bb2b..f93e9f4 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -413,6 +413,7 @@ void FbWinFrame::alignTabs() {
413 applyTabContainer(); 413 applyTabContainer();
414 } 414 }
415 415
416 FbTk::Orientation orig_orient = m_tab_container.orientation();
416 int tabx = 0, taby = 0; 417 int tabx = 0, taby = 0;
417 switch (m_screen.getTabPlacement()) { 418 switch (m_screen.getTabPlacement()) {
418 case TOPLEFT: 419 case TOPLEFT:
@@ -457,6 +458,12 @@ void FbWinFrame::alignTabs() {
457 break; 458 break;
458 } 459 }
459 460
461 if (m_tab_container.orientation() != orig_orient) {
462 renderTabContainer();
463 applyTabContainer();
464 m_tab_container.clear();
465 }
466
460 m_tab_container.move(tabx, taby); 467 m_tab_container.move(tabx, taby);
461} 468}
462 469