mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-02-05 00:35:34 +00:00
desktop/reservedArea: clamp dynamic types to 0
ref https://github.com/hyprwm/Hyprland/discussions/12880
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user