From 6642792f68ae42ba8d2bcbe2033284f7e8e61167 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 15 Oct 2008 23:31:37 +0200 Subject: additional fix for the resize bug --- src/FbWinFrame.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index ce25004..711e993 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -38,6 +38,7 @@ #include #include +using std::max; using std::mem_fun; using std::string; @@ -1702,7 +1703,8 @@ int FbWinFrame::yOffset() const { void FbWinFrame::applySizeHints(unsigned int &width, unsigned int &height, bool maximizing) const { - height -= titlebarHeight() + handleHeight(); + const int h = height - titlebarHeight() + handleHeight(); + height = max(h, static_cast(titlebarHeight() + handleHeight())); sizeHints().apply(width, height, maximizing); height += titlebarHeight() + handleHeight(); } -- cgit v0.11.2