aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc4
1 files changed, 3 insertions, 1 deletions
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 @@
38#include <algorithm> 38#include <algorithm>
39#include <X11/X.h> 39#include <X11/X.h>
40 40
41using std::max;
41using std::mem_fun; 42using std::mem_fun;
42using std::string; 43using std::string;
43 44
@@ -1702,7 +1703,8 @@ int FbWinFrame::yOffset() const {
1702 1703
1703void FbWinFrame::applySizeHints(unsigned int &width, unsigned int &height, 1704void FbWinFrame::applySizeHints(unsigned int &width, unsigned int &height,
1704 bool maximizing) const { 1705 bool maximizing) const {
1705 height -= titlebarHeight() + handleHeight(); 1706 const int h = height - titlebarHeight() + handleHeight();
1707 height = max(h, static_cast<int>(titlebarHeight() + handleHeight()));
1706 sizeHints().apply(width, height, maximizing); 1708 sizeHints().apply(width, height, maximizing);
1707 height += titlebarHeight() + handleHeight(); 1709 height += titlebarHeight() + handleHeight();
1708} 1710}