forgot to update rendering when orientation changes
simonb simonb
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
src/FbWinFrame.cc
→
src/FbWinFrame.cc
@@ -413,6 +413,7 @@ renderTabContainer();
applyTabContainer(); } + FbTk::Orientation orig_orient = m_tab_container.orientation(); int tabx = 0, taby = 0; switch (m_screen.getTabPlacement()) { case TOPLEFT:@@ -455,6 +456,12 @@ m_tab_container.setOrientation(FbTk::ROT0);
tabx = x() + width() - m_tab_container.width(); taby = y() + height() + m_window.borderWidth(); break; + } + + if (m_tab_container.orientation() != orig_orient) { + renderTabContainer(); + applyTabContainer(); + m_tab_container.clear(); } m_tab_container.move(tabx, taby);