all repos — fluxbox @ 3df681da2d274fa215ca98faa9507bcb5949ef52

custom fork of the fluxbox windowmanager

apply size hints when applying the state

There's a setting about maximization which allows to control whether the
resize increments should be honored when maximizing windows.
This is currently used to control whether maximized windows may resize
themselves via (rare) configure events, but not when maximizing windows
- what's somehow not what the config item sells.

BUG: 914
Thomas Lübking thomas.luebking@gmail.com
commit

3df681da2d274fa215ca98faa9507bcb5949ef52

parent

299e098f5f6fc6d33684b3d4e80185c8a7899664

1 files changed, 5 insertions(+), 3 deletions(-)

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

@@ -494,14 +494,16 @@ new_w -= widthOffset();

} } - if (m_state.shaded) + if (m_state.shaded) { new_h = m_titlebar.height(); - - if (m_state.fullscreen) { + } else if (m_state.fullscreen) { new_x = m_screen.getHeadX(head); new_y = m_screen.getHeadY(head); new_w = m_screen.getHeadWidth(head); new_h = m_screen.getHeadHeight(head); + } else { + applySizeHints(new_w, new_h, m_state.maximized == WindowState::MAX_NONE || + !m_screen.getMaxIgnoreIncrement()); } moveResize(new_x, new_y, new_w, new_h, true, true, true);