mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 18:18:03 +02:00
desktop/reservedArea: clamp dynamic types to 0
ref https://github.com/hyprwm/Hyprland/discussions/12880
This commit is contained in:
parent
380c63f8fe
commit
6874349236
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
Reference in a new issue