mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 22:05:59 +01:00
parent
67cee43006
commit
aa067a4cf1
1 changed files with 4 additions and 0 deletions
|
@ -324,10 +324,14 @@ void CXDGToplevelResource::close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector2D CXDGToplevelResource::layoutMinSize() {
|
Vector2D CXDGToplevelResource::layoutMinSize() {
|
||||||
|
if (current.minSize.x <= 1 && current.minSize.y <= 1)
|
||||||
|
return {0, 0};
|
||||||
return owner ? current.minSize + owner->current.geometry.pos() : current.minSize;
|
return owner ? current.minSize + owner->current.geometry.pos() : current.minSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector2D CXDGToplevelResource::layoutMaxSize() {
|
Vector2D CXDGToplevelResource::layoutMaxSize() {
|
||||||
|
if (current.maxSize.x <= 1 && current.maxSize.y <= 1)
|
||||||
|
return {0, 0};
|
||||||
return owner ? current.maxSize + owner->current.geometry.pos() : current.maxSize;
|
return owner ? current.maxSize + owner->current.geometry.pos() : current.maxSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue