all repos — fluxbox @ 8c53e8861ed51f284545634b46150f0adeb567e2

custom fork of the fluxbox windowmanager

rotate toolbar texture along with toolbar
markt markt
commit

8c53e8861ed51f284545634b46150f0adeb567e2

parent

d77de67332b95f5fec7a6a8de703b2a57c8d67aa

2 files changed, 13 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0.0: +*07/08/07: + * Rotate toolbar background texture along with toolbar, bug #1694959 (Mark) + Toolbar.cc *07/08/06: * Fix KDE Dockapps on restart (dont unmap), and some minor tweaks (Simon) SystemTray.hh/cc
M src/Toolbar.ccsrc/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)