rotate toolbar texture along with toolbar
markt markt
2 files changed,
13 insertions(+),
2 deletions(-)
M
src/Toolbar.cc
→
src/Toolbar.cc
@@ -466,8 +466,16 @@ if (!theme().toolbar().usePixmap()) {
m_window_pm = 0; frame.window.setBackgroundColor(theme().toolbar().color()); } else { - m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(), - theme().toolbar()); + FbTk::Orientation orient = FbTk::ROT0; + Toolbar::Placement where = *m_rc_placement; + if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM) + orient = FbTk::ROT270; + if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM) + orient = FbTk::ROT90; + + m_window_pm = screen().imageControl().renderImage( + frame.window.width(), frame.window.height(), + theme().toolbar(), orient); frame.window.setBackgroundPixmap(m_window_pm); } if (tmp)