all repos — fluxbox @ c1d9ae5068ed209a8ed051a68c269bd0158bf6a8

custom fork of the fluxbox windowmanager

fix changing iconbar alignment and button width from init file
Mark Tiefenbruck mark@fluxbox.org
commit

c1d9ae5068ed209a8ed051a68c269bd0158bf6a8

parent

659af0eb7548abac0f89b7de4b674678987e8bf1

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

jump to
M src/FbTk/Container.ccsrc/FbTk/Container.cc

@@ -229,7 +229,10 @@ return;

} void Container::setAlignment(Container::Alignment a) { - m_align = a; + if (m_align != a) { + m_align = a; + repositionItems(); + } } void Container::exposeEvent(XExposeEvent &event) {
M src/IconButton.ccsrc/IconButton.cc

@@ -100,6 +100,7 @@ FbTk::TextButton::moveResize(x, y, width, height);

if (m_icon_window.width() != FbTk::Button::width() || m_icon_window.height() != FbTk::Button::height()) { + reconfigTheme(); update(0); // update icon window } }

@@ -108,6 +109,7 @@ void IconButton::resize(unsigned int width, unsigned int height) {

FbTk::TextButton::resize(width, height); if (m_icon_window.width() != FbTk::Button::width() || m_icon_window.height() != FbTk::Button::height()) { + reconfigTheme(); update(0); // update icon window } }