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
This commit is contained in:
parent
299e098f5f
commit
3df681da2d
1 changed files with 5 additions and 3 deletions
|
@ -494,14 +494,16 @@ void FbWinFrame::applyState() {
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue