all repos — fluxbox @ 6642792f68ae42ba8d2bcbe2033284f7e8e61167

custom fork of the fluxbox windowmanager

additional fix for the resize bug
Mathias Gumz akira at fluxbox dot org
commit

6642792f68ae42ba8d2bcbe2033284f7e8e61167

parent

ccf096f771f84d8109f81c24a2af5f9510dda3c5

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -38,6 +38,7 @@

#include <algorithm> #include <X11/X.h> +using std::max; using std::mem_fun; using std::string;

@@ -1702,7 +1703,8 @@ }

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<int>(titlebarHeight() + handleHeight())); sizeHints().apply(width, height, maximizing); height += titlebarHeight() + handleHeight(); }