desktop/reservedArea: clamp dynamic types to 0
ref https://github.com/hyprwm/Hyprland/discussions/12880
This commit is contained in:
parent
f54dd4da4a
commit
f767782e3f
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ void CReservedArea::addType(eReservedDynamicType t, const Vector2D& topLeft, con
|
|||
auto& ref = m_dynamicReserved[t];
|
||||
ref.topLeft += topLeft;
|
||||
ref.bottomRight += bottomRight;
|
||||
ref.topLeft = ref.topLeft.clamp({0, 0});
|
||||
ref.bottomRight = ref.bottomRight.clamp({0, 0});
|
||||
calculate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue