aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-08-07 07:23:50 (GMT)
committermarkt <markt>2007-08-07 07:23:50 (GMT)
commit1b493c7fef07ed42e8d270800b7786aca1bd72d6 (patch)
tree1322ab694c4d035e286f7748831f7cecca85b20f
parent6d46164b6377a00b61dee5766c6e23e054cefd46 (diff)
downloadfluxbox-1b493c7fef07ed42e8d270800b7786aca1bd72d6.zip
fluxbox-1b493c7fef07ed42e8d270800b7786aca1bd72d6.tar.bz2
rotate toolbar texture along with toolbar
-rw-r--r--src/Toolbar.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 4a174bd..c5eff60 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -470,8 +470,16 @@ void Toolbar::reconfigure() {
470 m_window_pm = 0; 470 m_window_pm = 0;
471 frame.window.setBackgroundColor(theme().toolbar().color()); 471 frame.window.setBackgroundColor(theme().toolbar().color());
472 } else { 472 } else {
473 m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(), 473 FbTk::Orientation orient = FbTk::ROT0;
474 theme().toolbar()); 474 Toolbar::Placement where = *m_rc_placement;
475 if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM)
476 orient = FbTk::ROT270;
477 if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM)
478 orient = FbTk::ROT90;
479
480 m_window_pm = screen().imageControl().renderImage(
481 frame.window.width(), frame.window.height(),
482 theme().toolbar(), orient);
475 frame.window.setBackgroundPixmap(m_window_pm); 483 frame.window.setBackgroundPixmap(m_window_pm);
476 } 484 }
477 if (tmp) 485 if (tmp)