From 53bb2407c918e1f5b8cf88aa87ec76a2b66f76e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= <thomas.luebking@gmail.com> Date: Tue, 20 Sep 2016 22:22:11 +0200 Subject: only call applySizeHints when desired passing the "make_fit" parameter isn't sufficient to ignore constraints --- src/FbWinFrame.cc | 5 ++--- 1 file 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() { 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()); + } else if (m_state.maximized == WindowState::MAX_NONE || !m_screen.getMaxIgnoreIncrement()) { + applySizeHints(new_w, new_h, true); } moveResize(new_x, new_y, new_w, new_h, true, true, true); -- cgit v0.11.2