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
1 files changed,
5 insertions(+),
3 deletions(-)
jump to
M
src/FbWinFrame.cc
→
src/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);