additional fix for the resize bug
This commit is contained in:
parent
ccf096f771
commit
6642792f68
1 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
|
||||||
|
using std::max;
|
||||||
using std::mem_fun;
|
using std::mem_fun;
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
|
@ -1702,7 +1703,8 @@ int FbWinFrame::yOffset() const {
|
||||||
|
|
||||||
void FbWinFrame::applySizeHints(unsigned int &width, unsigned int &height,
|
void FbWinFrame::applySizeHints(unsigned int &width, unsigned int &height,
|
||||||
bool maximizing) const {
|
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);
|
sizeHints().apply(width, height, maximizing);
|
||||||
height += titlebarHeight() + handleHeight();
|
height += titlebarHeight() + handleHeight();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue