diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-09-20 20:22:11 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-09-21 18:05:01 (GMT) |
commit | 53bb2407c918e1f5b8cf88aa87ec76a2b66f76e2 (patch) | |
tree | 226b9693a6ee9fae112d0e2eed17be64d3f82468 | |
parent | 0c13ddc0c85ed4445ff8e289387c142e0ac98c77 (diff) | |
download | fluxbox-53bb2407c918e1f5b8cf88aa87ec76a2b66f76e2.zip fluxbox-53bb2407c918e1f5b8cf88aa87ec76a2b66f76e2.tar.bz2 |
only call applySizeHints when desired
passing the "make_fit" parameter isn't sufficient to ignore constraints
-rw-r--r-- | src/FbWinFrame.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 012b359..00bc118 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -501,9 +501,8 @@ void FbWinFrame::applyState() { | |||
501 | new_y = m_screen.getHeadY(head); | 501 | new_y = m_screen.getHeadY(head); |
502 | new_w = m_screen.getHeadWidth(head); | 502 | new_w = m_screen.getHeadWidth(head); |
503 | new_h = m_screen.getHeadHeight(head); | 503 | new_h = m_screen.getHeadHeight(head); |
504 | } else { | 504 | } else if (m_state.maximized == WindowState::MAX_NONE || !m_screen.getMaxIgnoreIncrement()) { |
505 | applySizeHints(new_w, new_h, m_state.maximized == WindowState::MAX_NONE || | 505 | applySizeHints(new_w, new_h, true); |
506 | !m_screen.getMaxIgnoreIncrement()); | ||
507 | } | 506 | } |
508 | 507 | ||
509 | moveResize(new_x, new_y, new_w, new_h, true, true, true); | 508 | moveResize(new_x, new_y, new_w, new_h, true, true, true); |