all repos — fluxbox @ b1d70e2c92c15d79ff0128d932b4e245c706a634

custom fork of the fluxbox windowmanager

bugfix: return 'height' if container is rotated vertically, closes #3195728

iconbar.iconWidth property was ignored due this bug.
Gediminas Liktaras gliktaras at gmail com
commit

b1d70e2c92c15d79ff0128d932b4e245c706a634

parent

40f8c35084a012f438ad654e047f3660939350c7

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

jump to
M src/IconbarTool.ccsrc/IconbarTool.cc

@@ -307,7 +307,7 @@ }

void IconbarTool::resize(unsigned int width, unsigned int height) { m_icon_container.resize(width, height); - m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() ? width : height); + m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() == FbTk::ROT180 ? width : height); renderTheme(); }

@@ -315,7 +315,7 @@ void IconbarTool::moveResize(int x, int y,

unsigned int width, unsigned int height) { m_icon_container.moveResize(x, y, width, height); - m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() ? width : height); + m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() == FbTk::ROT180 ? width : height); renderTheme(); }