dont show a handle if it cant be resized at all
This commit is contained in:
parent
34ed8c17ac
commit
a7ccc54450
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ void Client::setupDecorAndFunctions()
|
||||||
_functions |= Func_Close;
|
_functions |= Func_Close;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_min_size.x() > _max_size.x() || _min_size.y() > _max_size.y()) {
|
if (!(_min_size.x() < _max_size.x() || _min_size.y() < _max_size.y())) {
|
||||||
_decorations &= ~(Decor_Maximize | Decor_Handle);
|
_decorations &= ~(Decor_Maximize | Decor_Handle);
|
||||||
_functions &= ~(Func_Resize | Func_Maximize);
|
_functions &= ~(Func_Resize | Func_Maximize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue